Annotate fonts with ruby (pinyin/romaji) and produce modified TTF/WOFF2 outputs.

chore: add example

lem.my 8a99a528 5670a0a3

verified
+14 -7
+14 -3
README.md
··· 23 23 - `--subset`: Subset output font to contain only annotation characters 24 24 - `--split`: When input is a TTC, write each font as a separate TTF file instead of rebuilding a TTC 25 25 - `--woff2`: Convert outputs to WOFF2 26 + - `--position <top|bottom|leftdown|leftup|rightdown|rightup>`: Where to place ruby annotations relative to the base glyph. Valid values: 27 + - `top` (default): place annotation above the base glyph 28 + - `bottom`: place annotation below the base glyph 29 + - `leftdown`: place annotation to the left, stacking downwards 30 + - `leftup`: place annotation to the left, stacking upwards 31 + - `rightdown`: place annotation to the right, stacking downwards 32 + - `rightup`: place annotation to the right, stacking upwards 26 33 27 - ### Example 34 + ### Examples 28 35 29 - Process a single TTC, split into TTFs, subset and output WOFF2: 36 + ```sh 37 + rubify Sarasa-Regular.ttc -o dist --ruby pinyin 38 + ``` 30 39 31 40 ```sh 32 - rubify Sarasa-Regular.ttc -o dist --font iosevka/IosevkaSlim-Regular.ttf --subset --ruby romaji --position bottom --split --woff2 41 + rubify *.ttc -o dist --font iosevka/IosevkaSlim-Regular.ttf --ruby romaji --position bottom --split --woff2 33 42 ``` 43 + 44 + ![Example](example.png) 34 45 35 46 ## License 36 47
example.png

This is a binary file and will not be displayed.

-4
taplo.toml
··· 1 - # Sorts `Cargo.toml` dependencies. All other `.toml` files are formatted with the default config. 2 - # 3 - # https://taplo.tamasfe.dev/configuration/file.html#configuration-file 4 - 5 1 [formatting] 6 2 reorder_keys = false 7 3 reorder_arrays = false