Skip to content

Commit

Permalink
Ubuntu: Remove fi, fl, ... ligatures
Browse files Browse the repository at this point in the history
[why]
The fi and fl ligs are formulated in the font to go through glyphs with
codepoint `F001` and `F002`. That is detected and overwriting that
glyphs with some (Font Awesome) icons is prevented.

The question is: What is more important, to have the fi ligature or to
have the fa-music and fa-magnifying_glass icons?

[how]
We sacrify here Font Nerdism over Icon Nerdism and remove the
ligatures before patching.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Apr 10, 2024
1 parent 066d365 commit 8516c9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unpatched-fonts/Ubuntu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ you are expressly encouraged to experiment, modify, share and improve.

http://font.ubuntu.com/

The `fi`, `fl`, and similar ligatures are removed because they would block some Font Awesome glyphs.

Version: 0.83

## Preprocessed Source Font
Expand Down
5 changes: 5 additions & 0 deletions src/unpatched-fonts/Ubuntu/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Subtables]
ligatures: [
"'liga' Standard Ligatures in Latin lookup 20 subtable",
"'liga' Standard Ligatures in Greek lookup 21 subtable",
"'liga' Standard Ligatures in Cyrillic lookup 22 subtable" ]

0 comments on commit 8516c9c

Please sign in to comment.