Namespace: PdfSharp.Drawing
The bytes of a font file.
public class XFontSource
Inheritance Object → XFontSource
Gets the name of the font’s name table.
public string FontName { get; }
Gets the bytes of the font.
public Byte[] Bytes { get; }
Gets an existing font source or creates a new one. A new font source is cached in font factory.
public static XFontSource GetOrCreateFrom(Byte[] bytes)
bytes
Byte[]
internal static XFontSource GetOrCreateFromGlyphTypeface(string typefaceKey, XGlyphTypeface glyphTypeface)
typefaceKey
String
glyphTypeface
XGlyphTypeface
Creates a font source from a byte array.
public static XFontSource CreateCompiledFont(Byte[] bytes)
bytes
Byte[]
Returns a hash code for this instance.
public int GetHashCode()
Determines whether the specified object is equal to the current object.
public bool Equals(object obj)
obj
Object
The object to compare with the current object.
Boolean
if the specified object is equal to the current object; otherwise, .