README update after changing fxconv specifications in fxSDK 2.3
This commit is contained in:
parent
7e9a9d7de0
commit
0628030524
16
README.md
16
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue