2020-01-19 10:59 PM
Hi,
I ported successfully 4.9.3 application to 4.13, the process worked well and I can see the application running under the simulation.
I tried to build the application under CubeIDE, the compilation and link passed successfully but from some reason the new version created a very large font section (More then 1M while it was around 90K)) that did not fit in the internal flash as before.
This is a short snippets from the map file of the new build:
FontFlashSection
0x0000000091ee26b8 0x17d88c
*(FontFlashSection FontFlashSection.*)
FontFlashSection
0x0000000091ee26b8 0x12f7 generated/fonts/src/Font_Poppins_Bold_16_4bpp_0.o
0x0000000091ee26b8 unicodes_Poppins_Bold_16_4bpp_0
*fill* 0x0000000091ee39af 0x1
FontFlashSection
0x0000000091ee39b0 0x664 generated/fonts/src/Font_Poppins_Bold_16_4bpp_1.o
0x0000000091ee39b0 unicodes_Poppins_Bold_16_4bpp_1
FontFlashSection
0x0000000091ee4014 0x121a9 generated/fonts/src/Font_Poppins_Bold_16_4bpp_28.o
0x0000000091ee4014 unicodes_Poppins_Bold_16_4bpp_28
in compare to the old build:
FontFlashSection
0x0809381c 0x16a5a
FontFlashSection
0x0809381c 0x130f generated/fonts/src/Font_Poppins_Bold_16_4bpp.o
0x0809381c unicodes_Poppins_Bold_16_4bpp
Can you please explain what cause this change, and if and how I can reduce the size?
Thanks
2020-01-20 01:49 AM
Hi Eyal,
Can you check the content of your generated font cpp files? Does it contain a lot more glyphs than you asked for? (Your defined ranges in the designer).
I've heard about someone else having this issue before.
/Martin
2020-01-20 03:22 AM
Hi Martin,
I checked that and indeed the generated cpp are huge, I have defined ranges in the application but in the 4.9.3 version the generated cpp was much smaller so I assume (I'm not sure how to check) that in the new version I have more then I requested.
How can I fix this?
Thanks,
Eyal
2020-01-21 10:14 AM
Hi Martin,
Any input on that?
Thanks
2020-01-21 01:14 PM
Hi Eyal,
Can you show me your unicode ranges? Can you do some experiments for me? Narrow your ranges and verify in generated code that you're getting only what you asked for - Until you don't. It's not something we've experienced yet, but i saw another user who did who solved it using a new version of his font.
But, since it works for older versions of TouchGFX there really shouldn't be a difference.
/Martin
2021-06-21 03:26 AM
In my device I have issues with my font style the style I set there was different as compare to this one that is now showing on the screen please help me to solve this issue.