Binary fonts does not generated after the first time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-02 5:20 AM
Hi,
I set the binary option in the designer (4.13) and successfully generated the bin files. I then unset the option and generate again the fonts fileד. All this session worked as expected.
Now, after a while, in the same project, I set the binary option again but this time the bin directory was not created.
Any idea?
Thanks
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-02 5:30 AM
Are you sure it wasn't just deleted? Using binary fonts is a bit convoluted at the moment and we're working on a better solution - We've got a script that can generate glyphs without using the excel sheet. When you uncheck the "binary" option you need to store the generated bin file before re-generating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-02 12:18 PM
Since the project includes various fonts and only one of the fonts need to be use as a cached binary font we did the following:
- Set the binary font option
- Generated fonts
- Copy the binary fonts to a safe place out of the project tree
- copy the font source to a safe place out of the project tree.
- unset the binary font option
- Regenerate the fonts
- Replace the source of the Table_fontname_4bpp.cpp with the one from the safe place mention above that is actually an empty font table.
- Replace the source of the Kerning_fontname_4bpp.cpp as well
- Delete all the Font_fontname_4bpp_*.cpp
- Add support in the code for loading the binary font and use it as fontname.
Now, in that stage, if I want to repeat the process, maybe with another font from the project, and I set the binary font option and generate I can't get the bin directory again any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-03 3:47 AM
Okay, i'll try out your flow when i can! Thanks
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-18 5:55 AM
Hi Martin,
In another 4.13 project that is up and running without binary option set I need to add the binary font option.
I set the binary fonts option in the designer, generated the code rebuild and the bin directory is created but it is empty, any idea what could be wrong?
Thanks,
Eyal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-18 6:02 AM
I can see that if the bin directory exist the binary fonts are created into it
