FontFile Class
Represents a font file either on the disk or in the memory.
public sealed class FontFile : IEquatable<FontFile>
Public NotInheritable Class FontFile
Implements IEquatable(Of FontFile)
- Inheritance:
- FontFile
Implements
Properties
FamilyName
Gets the font family name.
Property Value
The font family name.
See Also
Italic
Gets a value indicating whether the characters in a font are truly (Italic) or artificially (Oblique) slanted.
Default value is false.
Property Value
true if the characters in a font are slanted; otherwise, false.
See Also
Stretch
Gets the integer value between 1 and 9 that represents OpenType font widths.
Default value is 5.
Property Value
The integer value between 1 and 9 that represents OpenType font widths.
See Also
Weight
Gets the integer value between 1 and 999 that represents OpenType font weight.
Default value is 400. Bold value is 700.
Property Value
The integer value between 1 and 999 that represents OpenType font weight.
See Also
Methods
ContainsCharacter(Int32)
Determines whether the font file contains outlines for the specified Unicode character.
public bool ContainsCharacter(int character)
Public Function ContainsCharacter(character As Integer) As Boolean
Parameters
character
- Int32
The Unicode character.
Returns
true if the font file contains outlines for the specified Unicode character; otherwise, false.
Equals(FontFile)
Parameters
other
- FontFile
The other font file to compare with this font file instance.
Returns
Equals(Object)
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
Returns
Overrides
GetHashCode()
Returns a hash code for this FontFile instance.
Returns
A hash code for this FontFile instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
ToString()
Returns
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).