diff --git a/README.md b/README.md index d60999a..2065318 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # Logo Lig Injects a PNG logo into a TTF font as a ligature. Type a trigger sequence -in any ligature-aware tool and the logo renders in place of the text. +in any ligature-aware tool and the logo renders in place of the text. The +replacement is context aware and will only trigger when the sequence is +surrounded by whitespace. ``` uv run font-lig --font input.ttf --logo cool.png --out output.ttf --sequence "cool" --family-name "Font + Cool" @@ -25,10 +27,6 @@ ligature-free fonts should all work. `--family-name` is required. Always give the output font a new name. Installing it under the original name will shadow the real font and confuse applications. -## Missing Features - -- GSUB type 5 and 6 support so patterns don't match inside a string, e.g 11 - ## Learned **Transparency.** I couldn't figure out how to make vtracer handle alpha. I kept diff --git a/examples/test_liga.html b/examples/test_liga.html index efeaaac..b109419 100644 --- a/examples/test_liga.html +++ b/examples/test_liga.html @@ -44,6 +44,10 @@

light: 219

dark: 219

red: 219

+

light: 1219

+

dark: 12191

+

red: 2191

+

red: a219