function AddFontFromResource(const resName: string; resType: PChar): Boolean;
Loads a font into the TSvgReader object, so it's available for text rendering. At least one font must be registered to display text in in SVG image. Multiple fonts will better support the variety of font styles (bold, italic) and font families (serif, sans-serif and monospace), and the TSvgReader object will choose the best one from those available.
{$R Font_Liberation_Sans.res} ... svgReader.AddFontFromResource( 'Liberation_Sans_Regular', RT_RCDATA);
Copyright ©2010-2023 Angus Johnson - Image32 4.8 - Help file built on 17 Jan 2025