Table of Contents

Class FontDetails

Namespace
UglyToad.PdfPig.PdfFonts
Assembly
UglyToad.PdfPig.dll

Summary details of the font used to draw a glyph.

public class FontDetails
Inheritance
FontDetails
Inherited Members

Constructors

FontDetails(string, bool, int, bool)

Create a new FontDetails.

public FontDetails(string name, bool isBold, int weight, bool isItalic)

Parameters

name string
isBold bool
weight int
isItalic bool

Fields

BoldWeight

The bold weight for a font.

public const int BoldWeight = 700

Field Value

int

DefaultWeight

The normal weight for a font.

public const int DefaultWeight = 500

Field Value

int

Properties

IsBold

Whether the font is bold.

public bool IsBold { get; }

Property Value

bool

IsItalic

Whether the font is italic.

public bool IsItalic { get; }

Property Value

bool

Name

The font name.

public string Name { get; }

Property Value

string

Weight

The font weight, values above 500 represent bold.

public int Weight { get; }

Property Value

int

Methods

ToString()

public override string ToString()

Returns

string