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

Class TtfGlyphAccessor

Implements IGlyphAccessor for TrueType/OTF fonts. Retrieves glyph metrics from "hmtx" and outline bounds from "glyf".

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

Methods

GetGlyphById(GlyphId)

Returns the Glyph for the given glyphId, or null if the glyph is not present in the font.

Declaration
public Glyph? GetGlyphById(GlyphId glyphId)
Parameters
Type Name Description
GlyphId glyphId
Returns
Type Description
Glyph

GetGlyphByIndex(uint)

Returns the Glyph for the given zero-based glyph index, or null if out of range.

Declaration
public Glyph? GetGlyphByIndex(uint index)
Parameters
Type Name Description
uint index
Returns
Type Description
Glyph

Implements

IGlyphAccessor
Back to top

DR-IT Software documentation

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

Generated by DocFX