cancel
Showing results for 
Search instead for 
Did you mean: 

The wildcard range 0x0000-0xFFFF is not allowed.

potentializ
Associate II

 

Hello!

I set the wildcard range to 0x0000-0xFFFF to use all characters contained in the "Pretendard JP" font.
However, I get an error when generating code with TouchGFX Designer.

Of course, specifying small wildcard ranges work, but I also want to support multiple languages ​​with as few language packs as possible.

Is there another way to include all characters in one resource without specifying wildcards?
I also tried entering about 20k Unicodes into the Wildcard Characters field, but the error was the same.

 

== Error message ==

ERROR: Illegal sizeInKerningTable for glyph 0x002C (439 not in range [0..255])
ERROR: While generating font from assets/fonts/PretendardJP-Bold.otf
An error occurred during text conversion
Cleaning generated files from generated/texts and generated/fonts.
Generating generated/fonts/include/fonts/GeneratedFont.hpp
Generating generated/fonts/src/GeneratedFont.cpp
Generating generated/fonts/include/fonts/UnmappedDataFont.hpp
Generating generated/fonts/src/UnmappedDataFont.cpp
Generating generated/fonts/include/fonts/CachedFont.hpp
Generating generated/fonts/src/CachedFont.cpp
Generating generated/fonts/include/fonts/FontCache.hpp
Generating generated/fonts/src/FontCache.cpp
Generating generated/fonts/src/ApplicationFontProvider.cpp
Generating generated/fonts/include/fonts/ApplicationFontProvider.hpp
Generating generated/texts/include/texts/TextKeysAndLanguages.hpp
Generating generated/texts/include/texts/TypedTextDatabase.hpp
Generating generated/texts/src/TypedTextDatabase.cpp
Generating generated/texts/src/Texts.cpp
Generating generated/texts/src/LanguageGb.cpp
Command: "../Middlewares/ST/touchgfx/framework/tools/fontconvert/build/win/fontconvert.out" -f "assets/fonts/PretendardJP-Bold.otf" -i 13 -w 16 -r 16 -o "generated/fonts" -c "generated/fonts/UnicodeListPretendardJP_Bold_otf_16_4.txt" -n "PretendardJP_Bold_otf" -b 4 -v 0 -d 63 -e 0 -ct yes -bf no -ff 0 -ffu 0 -ba
Warning: Skipping font kerning information due to space constraint
WARNING - Char 0x1 is used but does not exist in the font!
WARNING - A total of 43561 Unicode characters did not exist in the font!
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_0.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_1.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_3.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_4.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_5.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_6.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_7.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_9.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_10.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_11.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_12.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_13.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_14.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_15.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_16.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_17.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_18.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_19.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_20.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_21.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_22.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_23.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_24.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_25.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_26.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_28.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_29.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_30.cpp
Generating generated/fonts/src/Font_PretendardJP_Bold_otf_16_4bpp_31.cpp
make[1]: *** [texts] Error 1
generated/simulator/gcc/Makefile:225: recipe for target 'texts' failed
make: *** [assets] Error 2
simulator/gcc/Makefile:32: recipe for target 'assets' failed
Failed

 

Thanks!

13 REPLIES 13

Hello ferro

I looked into this. The problem is that the font has a lot of kerning information (horizontal adjustment of specific character pairs like 'F' and 'i' going close together). This font has more than 255 rules for the character 0x2C which is comma. This is a bug in the font converter. It cannot handle this.

We can fix that in a future release.

I think you can work around by selecting which characters you need as most of the kerning is to special characters. What languages are you targeting?
Regards

GaetanGodart
ST Employee

Hello @potentializ ,

We have improved the kerning table generation, it won't throw an error anymore.
The change will be available in future release.

Furthermore, we might increase the size in the future.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @Flemming Gram CHRISTENSEN 

Sorry for ma slow reply. Thank you explainig cause of the error.

"What languages are you targeting?"

I was just a 'beta tester' on this thread, trying to help potentializ with his font mentioned in original post.

Ferro

GaetanGodart
ST Employee

Hello @potentializ and @ferro ,

 

The fix for the kerning table size is live on the TouchGFX 4.24.1 version that is available for download.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)