23 views
ago in Embedded Wizard Studio by
I'm trying to add a new font resource (about 16MB), here is what I've done:

1. copy font file to directory with project file

2. add Resources::Font , then fill FontName and Ranges

3. add a Text component, use the Font above, preview is good

But, the studio report "Out of memory exception" when I trying to build this project.

Please hlep us of following questions:

1. what does "Out of memory exception" mean, there is no such description in Knowledge base

2. what "memory" is about, my PC or target platform, if target platform, how to config it

3. we still have the last plan that we can use TTFE, is there any demo about this, include native implement?

Waiting for your reply.

BR,

Jacob

1 Answer

0 votes
ago by
Hello Jacob,

it is the PC memory which is exhausted. Since Embedded Wizard Studio is still 32-Bit application, it is limited by Windows OS to use max. 2GB RAM, even if your PC had much more RAM available. Apparently, there are too many glyphs imported from the font. Possibly, the glyphs are too large. Also possible, your project contains many other resources which in total occupy too much memory during the code generation.

Question 1: Which version of Embedded Wizard are you using?

Question 2: How ist the font resource configured?

Question 3: Which font are you using?

Concerning the usage of TrueType engine, the corresponding Platform Package contains a ready to use C interface to the FreeType font engine. In the simplest case, you add FreeType source code files to your build system and use the source files from the adequate Platform Package. Please note FreeType is not part of Embedded Wizard. We limit to provide an interface to this engine only.

Best regards

Paul Banach
ago by
Hi,

Thanks for your reply, I've fixed this problem by shutdown some applications like browser, etc.

And here are the answers of your questions:

1. the version is Embedded Wizard 11.0

2. default, FontName changed only

3. Noto sans CJK sc

I am aware of the usage of TTFE that you mentioned, thank you for your patient explanation.

 

BR,

Jacob Wang

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...