Parses the input string for a font size value, which refers to the size of the font from baseline to baseline when multiple lines of text are set solid in a multiline layout environment.
The allowable inputs are absolute-size | relative-size | length | percentage | inherit
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseFontSize( S: String; DefValue, ParentSize: Single; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: Single
Default Value. If the string is empty, the default value is returned
ParentSize
Type: Single
Font size of parent svg element
Inherits
Type: Boolean
Set to True when the input string contains 'inherit' keyword
UnitFactors
Type: TSVGUnitFactors
Type: Single
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 |