Font Environment Variable

The Storyboard Engine, when used with the FreeType font engine, has environment variables for font options:

SB_FONT_HINT="normal"

This corresponds to the default hinting algorithm, optimized for standard gray-level rendering.

SB_FONT_HINT="light"

A lighter hinting algorithm for non-monochrome modes. Many generated glyphs are more fuzzy but better resemble its original shape. A bit like rendering on Mac OS X.

SB_FONT_CACHE_SIZE=[size]

This variable is used to set the size of the FreeType font face cache. By default the cache is disabled and a value of 0 will disable the cache. Any other number is the number of font faces to cache, using this cache can decrease memory mappings of font files.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.