Time needed to change Font
AnsweredFontFamily is intended to be used to switch the font of a text block by setting its Style and Weight.
The text block will have the same Style and Weight correct?
Can you mix different fonts into the same font family?
If I register Regular, Bold, and Light in the Font Family, are all three Font files copied to RAM when the application is launched?
Or are they copied to RAM the first time you render text in that style?
If I use multiple font files, it will take some time to switch fonts.
What do you take into account when doing this?
What are some things to keep in mind to speed up the switching time?
1
-
- Font family usage is not intended to switch font files, it's main purpose is to allow users to make use of different font weights within the same font.
- Font family does not provide font linking functionality and you should not mix different fonts within the same font family. Font linking functionality is provided by iType Font engine in Kanzi and linking is handled in an external Monotype tool.
- Font files are loaded when there is a text block that renders using that font file. So only the font in use will be copied.
- Generally it is slower to load font files from filesystem compared to loading from the kzb file. iType font engine also allows combining all linked font files to a single file, which speeds up the loading of the fonts quite significantly.
1
Please sign in to leave a comment.
Comments
1 comment