README update after changing fxconv specifications in fxSDK 2.3

This commit is contained in:
Lephenixnoir 2021-02-07 18:52:46 +01:00
parent 7e9a9d7de0
commit 0628030524
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 12 additions and 4 deletions

View File

@ -71,12 +71,20 @@ that in this setting, `area` is ignored and the same grid parameters are
applied to all block images.
```sh
% fxconv -f uf5x7/ name:uf5x7 charset:unicode grid.size:5x7
% fxconv -f uf5x7/ name:uf5x7 charset:unicode grid.size:5x7 grid.padding:1
```
When using the fxSDK, you can simply create a folder under `assets-fx` or
`assets-cg` with the block files of your choice, for instance
`assets-fx/uf5x7/U+0020.png`.
When using the fxSDK, add the `uf5x7` folder to your list of metadata files and
set the type as `font`.
```
uf5x7: # Note that this is a folder
type: font
name: uf5x7
charset: unicode
grid.size: 5x7
grid.padding: 1
```
To use the font, configure it with `dfont()`, then call `dtext()` as usual.
Make sure the string is encoded as UTF-8. The `u8` prefix can be used if your