FontTypeMetric Class

[size=150]FontTypeMetric Class[/size]

FontTypeMetric
Type: Class
Description: A class to retrieve font and text properties for annotations.
Properties:
[list]Ascent – The distance in pixels from the text baseline to the highest/upper grid coordinate used to place an outline point.
Descent – The distance in pixels from the baseline to the lowest grid coordinate used to place an outline point. Always a negative value.
TextHeight – The height in pixels of the text written, this does not include any padding
TextWidth – The width in pixels of the text written, this does not include any padding
BaselineOffset – Offset in pixels from the bottom of the image to the baseline used to write the text. Use this to align text from different point sizes and fonts.
MaxHorizontalAdvance – Maximum horizontal advance in pixels.[/list:u]

Privacy | Site terms | Cookie preferences