Declaration
procedure IEParseSVGFontAttributes(const Tag: string; var FontName: string; var FontSizePx: Double; var FontColor: TColor; var FontStyle: TFontStyles; var Opacity: Double; InitializeValues: Boolean = True);
Description
Parse a text tag or style content and return the found font attributes.
If InitializeValues = True, values that are not found will be reset to the SVG defaults.
Demo
| Demos\InputOutput\SVGParsing\SVGParsing.dpr |
Examples
IEParseSVGFontAttributes( '<text x="205" y="430" fill="Orange" font-size="35">ImageEn!</text>', fontName, fontSizePx, fontColor, fontStyle, opacity );
IEParseSVGFontAttributes( 'fill:#ffffff;fill-opacity:1;font-size:35;', fontName, fontSizePx, fontColor, fontStyle, opacity );
See Also
◼ ParseSVG◼ IEGetSVGTagType◼ IEParseSVGStyleAttributes