Hide Comments
Hide Comments

ParseFontSize(String,Single,Single,Boolean,TSVGUnitFactors) Method

Comments (0)

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: RSSVGUtils

expandingSyntax

Delphi

 function ParseFontSize( S: String; DefValue, ParentSize: Single;
  var Inherits: Boolean; UnitFactors: TSVGUnitFactors ): Single;
 

Parameters

S

Type: String

DefValue

Type: Single

ParentSize

Type: Single

Inherits

Type: Boolean

UnitFactors

Type: TSVGUnitFactors

Return Value

Type: Single

expandingRemarks

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.

noteNote

The UnitFactors parameter specifies the unit factors for conversion of string lengths into actual values. For example, if the input string contains '1cm', the function uses the UnitFactors to know how large a centimer is. It is usually set when the DPI property of the TSVGDocument element is set.

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb