TFontManager.LoadFromFile

function LoadFromFile(const filename: string); TFontReader


This method loads the named truetype font file.
Note: the object returned by this method will be destroyed automatically when FontManager is destroyed.

var
  myFont: TFontReader;
begin
  myFont := FontManager.LoadFromFile('my_font.ttf');
  ...
      

See Also

TFontReader