Class
Font
Font
Description
A Font.
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
✓ |
|||
✓ |
|||
✓ |
|||
✓ |
|||
✓ |
|||
✓ |
|||
✓ |
|||
✓ |
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
size As Double = 0.0 |
Font |
✓ |
|
file As FolderItem, pointSize As Double |
|||
handle As Ptr |
Font |
✓ |
|
size As Double = 0.0 |
Font |
✓ |
|
✓ |
|||
size As Double = 0.0 |
Font |
✓ |
|
✓ |
Property descriptions
Font.Ascent
Ascent As Double
The distance between the baseline and the top of the glyph (including diacritical marks) that reaches farthest from the baseline.
This property is read-only.
Font.CapHeight
CapHeight As Double
The distance from the baseline to the highest point of a capital letter (not including diacritical marks) above the baseline.
This property is read-only.
Font.Descent
Descent As Double
The distance between the baseline and the lowest descending glyph.
This property is read-only.
Font.Leading
Leading As Double
The distance between adjacent lines of type.
This property is read-only.
Font.LineHeight
LineHeight As Double
The distance between two adjacent baselines.
This property is read-only.
Font.Name
Name As String
The name of the Font.
This property is read-only.
Font.Size
Size As Double
The height of the Font in points.
This property is read-only.
Font.XHeight
XHeight As Double
The distance between the baseline and the mean line of lower-case letters.
This property is read-only.
Method descriptions
Font.BoldSystemFont
BoldSystemFont(size As Double = 0.0) As Font
Returns a Font object representing the bold system Font at the size passed.
This method is shared.
Font.Constructor
Constructor(file As FolderItem, pointSize As Double)
Returns a Font object for the Font in the file passed at the pointSize passed.
Note
Passing a file is supported for Android only.
Note
Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.
Constructor(postscriptName As String, pointSize As Double)
Returns a Font object for the Font name passed at the pointSize passed.
Get a Font object for the Helvetica Font at 12 point size:
Var helvetica12 As New Font("Helvetica", 12)
Font.FromHandle
FromHandle(handle As Ptr) As Font
Returns a Font from a Ptr.
Useful when you use declares to get a Font.
This method is shared.
Important
This property is not currently supported for Android.
Font.ItalicSystemFont
ItalicSystemFont(size As Double = 0.0) As Font
Returns a Font object representing the italic system Font at the size passed.
This method is shared.
Font.SmallSystemFontSize
SmallSystemFontSize As Double
Returns the Font size of the small system Font.
This method is shared.
Font.SystemFont
SystemFont(size As Double = 0.0) As Font
Returns a Font object representing the system Font at the size passed.
This method is shared.
Font.SystemFontSize
SystemFontSize As Double
Returns the Font size of the system Font.
This method is shared.
Notes
Use this class to get information about fonts and assign them to Font properties at runtime.
Compatibility
Mobile projects on all supported mobile operating systems.