PDFsharp-net6

XFontSource

Namespace: PdfSharp.Drawing

The bytes of a font file.

public class XFontSource

Inheritance ObjectXFontSource

Properties

FontName

Gets the name of the font’s name table.

public string FontName { get; }

Property Value

String

Bytes

Gets the bytes of the font.

public Byte[] Bytes { get; }

Property Value

Byte[]

Methods

GetOrCreateFrom(Byte[])

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)

Parameters

bytes Byte[]

Returns

XFontSource

GetOrCreateFromGlyphTypeface(String, XGlyphTypeface)

internal static XFontSource GetOrCreateFromGlyphTypeface(string typefaceKey, XGlyphTypeface glyphTypeface)

Parameters

typefaceKey String

glyphTypeface XGlyphTypeface

Returns

XFontSource

CreateCompiledFont(Byte[])

Creates a font source from a byte array.

public static XFontSource CreateCompiledFont(Byte[] bytes)

Parameters

bytes Byte[]

Returns

XFontSource

GetHashCode()

Returns a hash code for this instance.

public int GetHashCode()

Returns

Int32

Equals(Object)

Determines whether the specified object is equal to the current object.

public bool Equals(object obj)

Parameters

obj Object
The object to compare with the current object.

Returns

Boolean
if the specified object is equal to the current object; otherwise, .