• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Type1Font

Represents a loaded Type 1 font face (PFB or PFA). Charstrings are decoded via Type1CharStringInterpreter.

Inheritance
object
Type1Font
Implements
IFont
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DRIT.Drawing.Font.Type1
Assembly: DRIT.Drawing.dll
Syntax
public sealed class Type1Font : IFont

Properties

Encoding

Encoding map that translates Unicode code points to glyph identifiers.

Declaration
public IFontEncoding Encoding { get; }
Property Value
Type Description
IFontEncoding

FontFamily

Family name of the font, e.g. "Montserrat".

Declaration
public string FontFamily { get; }
Property Value
Type Description
string

FontName

Full name of the font, e.g. "Montserrat Regular".

Declaration
public string FontName { get; }
Property Value
Type Description
string

GlyphAccessor

Provides access to individual glyphs by identifier or index.

Declaration
public IGlyphAccessor GlyphAccessor { get; }
Property Value
Type Description
IGlyphAccessor

Metrics

Font-level metrics (ascender, descender, units per em, etc.).

Declaration
public IFontMetrics Metrics { get; }
Property Value
Type Description
IFontMetrics

NumGlyphs

Total number of glyphs in the font.

Declaration
public int NumGlyphs { get; }
Property Value
Type Description
int

Style

Typographic style of this font face.

Declaration
public FontFaceStyle Style { get; }
Property Value
Type Description
FontFaceStyle

Methods

Save(Stream)

Serialises the (possibly modified) font to stream.

Declaration
public void Save(Stream stream)
Parameters
Type Name Description
Stream stream
Remarks

Type 1 serialisation is outside the scope of this library.

Save(string)

Serialises the (possibly modified) font to the file at filePath.

Declaration
public void Save(string filePath)
Parameters
Type Name Description
string filePath

ToString()

Returns a string representation of this Type 1 font.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IFont
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX