Skip to content

Commit

Permalink
Final touches for the 0.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed Apr 10, 2021
1 parent d01a636 commit 46264e1
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 50 deletions.
20 changes: 8 additions & 12 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


<!-- Most of the following common typefaces are not perfectly hinted for
low DPI screens, but they are usually used at bigger sizes. -->
low DPI screens, but they are typically used at bigger sizes. -->


<!-- Metrically-identical replacements. -->
Expand All @@ -30,7 +30,7 @@
<!-- Bitter. An open-source font frequently used for the web.
TTF version from the googlefontdirectory repo is to be
used on low DPI screens. Latest version only for high DPI screens.
Used on: https://arstechnica.com, https://dasung-tech.myshopify.com -->
Used on: https://arstechnica.com. -->
<include prefix="xdg">fontconfig/common/bitter.conf</include>

<!-- Book Antiqua, Palatino, Palatino Lynotype, etc.
Expand All @@ -48,7 +48,7 @@
<include prefix="xdg">fontconfig/common/urw-fallback-generics.conf</include>
<include prefix="xdg">fontconfig/common/urw-fallback-specifics.conf</include>

<!-- Bitstream Charter, ITC Charter.
<!-- Charter, Bitstream Charter, ITC Charter.
Used on: https://medium.com, https://www.economist.com (fallback). -->
<include prefix="xdg">fontconfig/common/charter.conf</include>

Expand All @@ -71,17 +71,17 @@
<!-- End of list of fonts perfectly hinted at small sizes. -->


<!-- Arial Rounded MT Bold, Helvetica Rounded LT Std Bold -->
<!-- Arial Rounded MT Bold, Helvetica Rounded LT Std Bold. -->
<include prefix="xdg">fontconfig/common/varela-round.conf</include>

<!-- Baskerville, Baskerville Old Face, Baskerville PT.
Used on: https://theconversation.com, https://www.the-scientist.com.-->
<include prefix="xdg">fontconfig/common/libre-baskerville.conf</include>

<!-- Brush Script MT -->
<!-- Brush Script MT. -->
<include prefix="xdg">fontconfig/common/kaushan-script.conf</include>

<!-- Copperplate, Copperplate Gothic -->
<!-- Copperplate, Copperplate Gothic. -->
<include prefix="xdg">fontconfig/common/cinzel-decorative.conf</include>

<!-- Economica, Impact.
Expand All @@ -101,6 +101,8 @@

<!-- Emoji settings and aliases -->

<!-- Twemoji and derivatives is better for Firefox-based browsers.
For Chrome-based ones, Noto Color Emoji is best. -->
<include prefix="xdg">fontconfig/common/twitter-color-emoji.conf</include>


Expand All @@ -112,11 +114,5 @@
<family>Font Awesome 5 Free Solid</family>
</prefer>
</alias>
<alias binding="same">
<family>FontAwesome</family>
<prefer>
<family>Font Awesome 5 Free Solid</family>
</prefer>
</alias>

</fontconfig>
16 changes: 0 additions & 16 deletions common/oswald.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Generic name aliasing -->
<alias>
<family>fantasy</family>
<prefer>
<family>Oswald</family>
</prefer>
</alias>

<!-- Generic name assignment -->
<alias>
<family>Oswald</family>
<default>
<family>fantasy</family>
</default>
</alias>

<!-- Font substitution rules -->
<alias binding="same">
<family>Economica</family>
Expand Down
2 changes: 1 addition & 1 deletion fixes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<description>Various rendering fixes</description>

<!-- Disable hinting for sizes less than 8ppem for Vera-derived fonts.
<!-- Disable hinting at sizes less than 8ppem for Vera-derived fonts.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
Expand Down
25 changes: 13 additions & 12 deletions lowdpi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
Source Code Pro used on https://www.vice.com. -->
<include prefix="xdg">fontconfig/lowdpi/noto-mono.conf</include>

<!-- Bitstream Vera Serif -->
<!-- Bitstream Vera Serif, DejaVu Serif. -->
<include prefix="xdg">fontconfig/lowdpi/dejavu-serif.conf</include>

<!-- Courier, Courier New/Std. Not the greatest match, but Wine's Courier
Expand All @@ -152,10 +152,10 @@
Arimo used on https://www.anandtech.com. -->
<include prefix="xdg">fontconfig/lowdpi/liberation-sans.conf</include>

<!-- Lucida Console, Lucida Sans Typewriter, Menlo -->
<!-- Liberation Mono, Menlo, Lucida Console, Lucida Sans Typewriter. -->
<include prefix="xdg">fontconfig/lowdpi/liberation-mono.conf</include>

<!-- Times, MS Serif, Tinos, and other missing aliases.
<!-- Times New Roman, Times, MS Serif, Tinos, and other missing aliases.
Times New Roman used on https://www.nlm.nih.gov/,
https://www.latimes.com (fallback).
Times used on https://www.thetimes.co.uk. -->
Expand All @@ -173,47 +173,48 @@
https://time.com (fallback). -->
<include prefix="xdg">fontconfig/lowdpi/pt-sans-narrow.conf</include>

<!-- Georgia, Georgia Pro. Similar metrics with even higher x-height, but
no old-style figures. More similar than Liberation/DejaVu Serif though.
<!-- Georgia, PT Serif. Similar metrics, with a slightly higher x-height for
the latter. PT Serif is a much better alias for Georgia compared to
Liberation/DejaVu Serif. None have Georgia's old-style figures though.
Georgia used on many sites, e.g. https://www.washingtonpost.com.
PT Serif used on https://time.com. -->
<include prefix="xdg">fontconfig/lowdpi/pt-serif.conf</include>

<!-- Geneva. This is Wine's Tahoma. Bold font is problematic at some sizes.
<!-- Geneva, Tahoma. This is Wine's Tahoma. Some Bold bitmaps are wrong.
Tahoma used on many sites, e.g. https://web.telegram.org.
Geneva used on https://news.ycombinator.com/ (fallback). -->
<include prefix="xdg">fontconfig/lowdpi/tahoma.conf</include>

<!-- Lucida Bright -->
<!-- Lucida Bright. -->
<include prefix="xdg">fontconfig/lowdpi/pt-serif-caption.conf</include>

<!-- Monotype Corsiva, Corsiva. -->
<include prefix="xdg">fontconfig/lowdpi/felipa.conf</include>

<!-- Proxima Nova. Most successfull commercial font on the web. There's no
<!-- Proxima Nova. Most successful commercial font on the web. There's no
open-source font with perfect hinting to replace it. To avoid falling
back to default sans-serif, let's give Cabin a bit more use...
Proxima Nova used on: https://www.cnbc.com, https://duckduckgo.com.
Proxima Nova Cond used on https://gizmodo.com. -->
<include prefix="xdg">fontconfig/lowdpi/cabin.conf</include>

<!-- Segoe UI, Segoe, Lucida Sans/Grande, Cantarell.
<!-- Segoe UI, Segoe, Lucida Sans/Grande, PT Sans, Cantarell.
Segoe UI used on https://www.microsoft.com, https://msn.com, etc.
Segoe used on https://outlook.live.com.
Lucida Grande used on https://telegram.org, https://arxiv.org.
Lucida Sans Unicode used on https://telegram.org (fallback). -->
<include prefix="xdg">fontconfig/lowdpi/pt-sans.conf</include>

<!-- SFMono-Regular. Sets best option for GitHub's default code font. -->
<include prefix="xdg">fontconfig/lowdpi/luculent.conf</include>

<!-- Verdana, DejaVu Sans. Not that far away. Unfortunately, no italics.
Verdana used on: https://www.imdb.com, https://news.ycombinator.com.-->
<include prefix="xdg">fontconfig/lowdpi/pt-sans-caption.conf</include>


<!-- Extra rules -->

<!-- Recommended font for consoles/terminals. -->
<include prefix="xdg">fontconfig/lowdpi/luculent.conf</include>

<!-- Fonts frequently used w/o any fallbacks. Aliased to avoid serif. -->

<!-- On https://arstechnica.com (the desktop site). -->
Expand Down
2 changes: 1 addition & 1 deletion lowdpi/liberation-sans.conf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</alias>

<alias binding="same">
<family>Helvetica</family>
<family>MS Sans Serif</family>
<prefer>
<family>Liberation Sans</family>
</prefer>
Expand Down
7 changes: 0 additions & 7 deletions lowdpi/pt-sans.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,4 @@
<family>PT Sans</family>
</prefer>
</alias>

<alias binding="same">
<family>SegoeUI</family>
<prefer>
<family>PT Sans</family>
</prefer>
</alias>
</fontconfig>
2 changes: 1 addition & 1 deletion os/openbsd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>Extra settings for OpenBSD setups</description>


<!-- This is for an OpenBSD 6.7 X.org installation. -->
<!-- This is for an OpenBSD 6.8 X.org installation. -->
<selectfont>
<rejectfont>
<glob>/usr/X11R6/lib/X11/fonts/100dpi/*</glob>
Expand Down
2 changes: 2 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

<meta http-equiv="content-type" content="text/html; charset=utf-8">

<title>PixelPerfect test page.</title>

<style>
h3{
font-family: 'Archivo Narrow', 'Helvetica Condensed', 'Nimbus Sans Narrow', 'Arial Narrow', sans-serif;
Expand Down

0 comments on commit 46264e1

Please sign in to comment.