TFontManager.LoadFromResource

function LoadFromResource(const resName: string; resType: PChar); TFontReader


Note: the object returned by this method will be destroyed automatically when FontManager is destroyed.

var
  myFont: TFontReader;
begin
  myFont := FontManager.LoadFromResource('my_ttf_font'; RT_RCDATA);
  ...
      

See Also

TFontReader