I'm writing a small CAD application which loads a DXF drawing file.
If the file contains text, it may simply describe the font used as Arial.
I am having a tinker with Graeme Geldenhuis' fpTTF module which claims to cache the installed fonts on the machine (I am using Mate on Manjaro).
As I understand it, I initiate the font cache:
gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0)) + 'fonts/');
gTTFontCache.BuildFontCache;
Then I use the name of the font to find it:
gTTFontCache.Find('Arial');
However, I am unsure of what happens next.
How do I assign the font to the canvas?
TIA.