From 01bcd117517f5bd300e9936bfd00e66cbb29c323 Mon Sep 17 00:00:00 2001 From: emile Date: Sat, 2 Nov 2024 12:38:04 +0100 Subject: [PATCH] some fixes --- README.md | 20 ++++++++++++++------ mergehex.sh | 8 ++++++-- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bacd6f1..f312676 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Qunifont is a [qunified](https://typotheque.genderfluid.space/fr/quni#quni) version of the [Unifont](https://unifoundry.com/unifont/index.html) -## Drawing new Qunifont glyphs (in pads) +## Drawing new Qunifont glyphs in a pad Download, extract and rename the last Unifont tar.gz file (https://unifoundry.com/pub/unifont/?C=M;O=D) to get access to the Unifont utilities scripts @@ -10,13 +10,13 @@ Download, extract and rename the last Unifont tar.gz file (https://unifoundry.co tar -xvf unifont.tar.gz mv unifont-16.0.01 unifont -Change the GLYPH_MAX_WIDTH variable from hex2otf.c to 64 and compile it with `gcc unifont/src/hex2otf.c -o hex2otf` +TODO: Change metadata in `hex2otf.c` - #define GLYPH_MAX_WIDTH 64 ///< Maximum glyph width, in pixels. + see unifont/src/hex2otf -TODO: change metadata +Change the GLYPH_MAX_WIDTH variable in `hex2otf.c` to 64 and compile it with `gcc unifont/src/hex2otf.c -o unifont/src/hex2otf` - see unifont/src/hex2otf + #define GLYPH_MAX_WIDTH 64 ///< Maximum glyph width, in pixels. Draw glyphs in a pad following this format (hexadecimal identifier): @@ -58,7 +58,7 @@ TODO: add OpenType features see https://gitlab.com/bye-bye-binary/typotheque/-/raw/master/features-samples/features_exemple_long.fea -## Other useful commands +## Other useful commands etc. Convert uniascii to unihex @@ -86,3 +86,11 @@ Print specific glyph in terminal from hexcode Download .fea from BBB wget https://gitlab.com/bye-bye-binary/typotheque/-/raw/master/features-samples/features_exemple_long.fea + +Edit Fontforge Lookup table + + Element > Font Info > Lookup + +Import .fea file in Fontforge + + File > Import merge features diff --git a/mergehex.sh b/mergehex.sh index 20eaf00..029fae2 100755 --- a/mergehex.sh +++ b/mergehex.sh @@ -10,11 +10,15 @@ for i in `cat qunifont.hex`; do done; # remove duplicate ids from unifont.hex -cp unifont/font/plane00/unifont-base.hex unifont.hex +#cp unifont/font/plane00/unifont-base.hex unifont.hex for i in "${ids[@]}"; do echo $i; sed -i "/^$i/d" unifont.hex done; +# TODO: +# cut first n glyphs of unifont-hex to make it lighter + # concat qunifont.hex to cleaned unifont.hex -cat qunifont.hex >> unifont.hex && cp unifont.hex qunifont.hex +cat unifont.hex > merge.hex +cat qunifont.hex >> merge.hex