Parses the input string for a font weight value, e.g., the boldness or lightness of the glyphs used to render the text, relative to other fonts in the same font family.
The allowable values are normal | bold | bolder | lighter | 100 | 200 | 300
| 400 | 500 | 600 | 700 | 800 | 900 | inherit
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseFontWeight( S: String; DefValue: TSVGFontWeight; var Inherits: Boolean ): TSVGFontWeight; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGFontWeight
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: TSVGFontWeight
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 |