The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FontIsTrueType


Unit:SDL_sdlbase
Class: none
Declaration: function FontIsTrueType (FontName: string): boolean;

The function FontIsTrueType returns a TRUE value if the font specified by its name (parameter FontName) is a TrueType font. The function does not check whether the font specified by FontName is available in the system. If the parameter FontName contains the name of a nonexisting font the TrueType status of the default font (in most cases this will be a member of the Arial font familiy) is checked.

Hint: In order to check whether a particular font is installed you should call the method Screen.Fonts.IndexOf(FontName) before calling FontIsTrueType. If it returns a negative value, the specified font is not available.



Last Update: 2023-Feb-06