Parses the input string for a font variant value, which specifies whether the text is to be converted to small-caps.
The allowable inputs are normal | small-caps | uppercase | lowercase | titlecase. Only normal and small-caps are part of the svg specification
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseFontVariant( S: String; DefValue: TSVGFontVariant; var Inherits: Boolean ): TSVGFontVariant; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGFontVariant
Default Value. If the string is empty, the default value is returned
Inherits
Type: Boolean
Set to True when the input string contains 'inherit' keyword
Type: TSVGFontVariant
If the string is blank, the function returns the default value ( DefValue). If the string contains 'inherits', the function returns the default value and sets the Inherits parameter to true. |
Reference |