591 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...