From 0628030524ffeaa2a1f9abd89cdbb0251255de75 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 7 Feb 2021 18:52:46 +0100 Subject: [PATCH] README update after changing fxconv specifications in fxSDK 2.3 --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ac3508..38f66fd 100644 --- a/README.md +++ b/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