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

Class TtfSimpleGlyph

Represents a TrueType simple-glyph outline: contour data parsed from a non-composite, non-empty entry in the "glyf" table.

Inheritance
object
TtfSimpleGlyph
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Font.Ttf.Glyphs
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfSimpleGlyph

Constructors

TtfSimpleGlyph(int, TtfPoint[], ushort[], byte[])

Initializes a new TtfSimpleGlyph with the specified contour data.

Declaration
public TtfSimpleGlyph(int numberOfContours, TtfPoint[] points, ushort[] endPtsOfContours, byte[] instructions)
Parameters
Type Name Description
int numberOfContours

Number of closed contours.

TtfPoint[] points

All points of all contours, in order.

ushort[] endPtsOfContours

Index into Points of the last point of each contour.

byte[] instructions

TrueType hinting instructions.

Fields

Empty

A zero-contour simple glyph (e.g. space character).

Declaration
public static readonly TtfSimpleGlyph Empty
Field Value
Type Description
TtfSimpleGlyph

Properties

EndPtsOfContours

Index (into Points) of the last point of each contour. Length == NumberOfContours.

Declaration
public ushort[] EndPtsOfContours { get; }
Property Value
Type Description
ushort[]

Instructions

TrueType hinting instructions (may be empty).

Declaration
public byte[] Instructions { get; }
Property Value
Type Description
byte[]

NumberOfContours

Number of closed contours.

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

Points

All points of all contours, in order. Use EndPtsOfContours to determine contour boundaries.

Declaration
public TtfPoint[] Points { get; }
Property Value
Type Description
TtfPoint[]
Back to top

DR-IT Software documentation

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

Generated by DocFX