PDFsharp-net6

XGlyphTypeface

Namespace: PdfSharp.Drawing

Specifies a physical font face that corresponds to a font file on the disk or in memory.

public sealed class XGlyphTypeface

Inheritance ObjectXGlyphTypeface

Properties

FontFamily

Gets the font family of this glyph typeface.

public XFontFamily FontFamily { get; }

Property Value

XFontFamily

FontSource

Gets the font source of this glyph typeface.

public XFontSource FontSource { get; }

Property Value

XFontSource

FamilyName

Gets the English family name of the font, for example “Arial”.

public string FamilyName { get; private set; }

Property Value

String

StyleName

Gets the English subfamily name of the font, for example “Bold”.

public string StyleName { get; private set; }

Property Value

String

DisplayName

Gets the English display name of the font, for example “Arial italic”.

public string DisplayName { get; private set; }

Property Value

String

IsBold

Gets a value indicating whether the font weight is bold.

public bool IsBold { get; private set; }

Property Value

Boolean

IsItalic

Gets a value indicating whether the font style is italic.

public bool IsItalic { get; private set; }

Property Value

Boolean

StyleSimulations

Gets a value indicating whether the style bold, italic, or both styles must be simulated.

public XStyleSimulations StyleSimulations { get; }

Property Value

XStyleSimulations

Methods

GetOrCreateFrom(String, FontResolvingOptions)

internal static XGlyphTypeface GetOrCreateFrom(string familyName, FontResolvingOptions fontResolvingOptions)

Parameters

familyName String

fontResolvingOptions FontResolvingOptions

Returns

XGlyphTypeface

GetBaseName()

internal string GetBaseName()

Returns

String

ComputeKey(String, FontResolvingOptions)

Computes the bijective key for a typeface.

internal static string ComputeKey(string familyName, FontResolvingOptions fontResolvingOptions)

Parameters

familyName String

fontResolvingOptions FontResolvingOptions

Returns

String

ComputeKey(String, Boolean, Boolean)

Computes the bijective key for a typeface.

internal static string ComputeKey(string familyName, bool isBold, bool isItalic)

Parameters

familyName String

isBold Boolean

isItalic Boolean

Returns

String