const text = 'some text'; var image : TImage32; rec : TRect; arialFont : TFontReader; arial14 : TFontCache; begin ... //The following line of code assumes compiling to the Windows platform. //For cross-platform applications, consider storing the font in the //application's resource section, and loading it from there. FontManager.Load('Arial', 800); arialFont := FontManager.GetFont('Arial'); //create a font cache for arialFont (with font height 14) arial14 := TFontCache.Create(arialFont, DpiAware(14)); try //now do something with arial14Cache DrawText(image, rec, text, taCenter, tvaMiddle, arial14); finally //clean up //arialFont.Free; //handled by FontManager arial14.Free; end;
Methods | Properties |
---|---|
Clear | FontFamily |
Create | FontInfo |
CreateFromResource | Weight |
Destroy | |
GetGlyphInfo | |
IsValidFontFormat | |
Load | |
LoadFromFile | |
LoadFromResource | |
LoadFromStream | |
LoadUsingFontHdl |
Copyright ©2010-2023 Angus Johnson - Image32 4.8 - Help file built on 18 Jan 2025