171 views
in Embedded Wizard Studio by
Hello Team,

I have a question about the usage of the TTF font engine.

It looks like font generation is still needed when using TTF font on the target. Is it possible to load TTF font registered with target system or to load font files from SD card dynamically at runtime?

Best Regards,

Kangmin

1 Answer

0 votes
by
 
Best answer
Hello Kangmin,

the generated C arrays (containing the content of the TTF files) are just for convenience - so it is possible to integrate the same TTF files into your binary as you has used during development.

But anyhow, the TrueType font engine (TTFE) interface is just an interface and you can implement that according to your needs. This means: Of course, you can integrate your own mechanism to provide the TTF information during runtime. Important is, that you register the font data (that you have loaded) by using the function EwTtfRegisterFont().

The integration of the FreeType2 font engine, which we include in our TTFE package - is also just a reference implementation. Feel free to use a completely different TrueType font engine.

I hope this answers your question.

Best regards,
Manfred.
by
Hi Manfred

Thank you for your prompt reply.

It was very helpful in understanding how it works.

Best Regards,

Kangmin

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

...