Member attributes: FontConversion
This attribute controls the conversion of font resources.
Syntax
Windows
FreeType
Discussion
During code generation all font resources belonging to the project can be converted automatically in a format optimized for the particular target system. It includes glyph rasterization, font metric calculation and data compression. This approach is optimal for all embedded systems not containing its own TrueType font engine and as such not able to perform the necessary conversion steps directly at the runtime.
For this purpose, Embedded Wizard pre-rasterizes all necessary glyphs and pre-calculates all font metrics just at the code generation time by using a TrueType font engine available on your development system. From this arises a problem, that depending on the used font engine, the resulting glyphs and font metrics may slightly differ. For example, one font engine may produce bigger glyphs while another engine does rasterize thinner glyphs.
With the attribute FontConversion you can explicitly select the TrueType font engine to perform the conversion and control the outputs in a better manner. The selection affects all font resources existing in your project. Actually, following are the available options for the attribute FontConversion:
Option |
Description |
---|---|
Windows |
The Windows own font engine is used. This is the default setting. |
FreeType |
The FreeType font engine is used. |
Modify the attribute
To inspect or modify the value of a FontConversion attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available assistant you can activate by clicking on the button right to the attribute. The assistant lists all appropriate values for this attribute:
Please note, the attribute can be hidden if it is not supported by the Platform Package selected in the particular profile member. This is usually a case if the Platform Package is optimized for a target system containing already an own TrueType font engine.