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:
- System.ObjectFontFile
Implements
Properties
FamilyName
Gets the font family name.
Property Value
- System.String
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
- System.Boolean
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
- System.Int32
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
- System.Int32
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
- System.Int32
The Unicode character.
Returns
- System.Boolean
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)
Determines whether the specified System.Object is equal to this FontFile instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this font file instance.
Returns
- System.Boolean
Overrides
GetHashCode()
Returns a hash code for this FontFile instance.
Returns
- System.Int32
A hash code for this FontFile instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
ToString()
Returns a System.String that represents this FontFile instance.
Returns
- System.String
A System.String that represents this FontFile instance.
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).