Table of Contents

Class Type1Font

Namespace
UglyToad.PdfPig.Fonts.Type1
Assembly
UglyToad.PdfPig.Fonts.dll

An Adobe Type 1 font.

public class Type1Font
Inheritance
Type1Font
Inherited Members

Properties

BoundingBox

A rectangle in glyph coordinates specifying the font bounding box. This is the smallest rectangle enclosing the shape that would result if all of the glyphs were overlayed on each other.

public PdfRectangle BoundingBox { get; }

Property Value

PdfRectangle

Encoding

The encoding dictionary defining a name for each character code.

public IReadOnlyDictionary<int, string> Encoding { get; }

Property Value

IReadOnlyDictionary<int, string>

FontMatrix

The font matrix.

public TransformationMatrix FontMatrix { get; }

Property Value

TransformationMatrix

Name

The name of the font.

public string Name { get; }

Property Value

string

PrivateDictionary

The private dictionary for this font.

public Type1PrivateDictionary PrivateDictionary { get; }

Property Value

Type1PrivateDictionary

Methods

ContainsNamedCharacter(string)

Whether the font contains a character with the given name.

public bool ContainsNamedCharacter(string name)

Parameters

name string

Returns

bool

GetCharacterBoundingBox(string)

Get the bounding box for the character with the given name.

public PdfRectangle? GetCharacterBoundingBox(string characterName)

Parameters

characterName string

Returns

PdfRectangle?

GetCharacterPath(string)

Get the pdfpath for the character with the given name.

public IReadOnlyList<PdfSubpath> GetCharacterPath(string characterName)

Parameters

characterName string

Returns

IReadOnlyList<PdfSubpath>