Table of Contents

Class GlyphAdditionResult

Namespace
KernSmith.Output
Assembly
KernSmith.dll

The outcome of one AddGlyphs(string) call: the glyphs placed (with pixel bytes), the kerning pairs the additions introduced, and any page-geometry change the caller must react to.

public sealed class GlyphAdditionResult
Inheritance
GlyphAdditionResult
Inherited Members

Properties

Added

The glyphs added by this call, each with pixels and a reserved placement.

public IReadOnlyList<AddedGlyph> Added { get; }

Property Value

IReadOnlyList<AddedGlyph>

AlreadyPresent

Requested codepoints that were already in the session. Re-adds are reported no-ops, never errors.

public IReadOnlyList<int> AlreadyPresent { get; }

Property Value

IReadOnlyList<int>

FailedCodepoints

Requested codepoints the font cannot render (no cmap entry or rasterization failed).

public IReadOnlyList<int> FailedCodepoints { get; }

Property Value

IReadOnlyList<int>

NewKerning

Kerning pairs introduced by this call only (the delta): pairs where at least one side is a newly added character and the other side is already in the session.

public IReadOnlyList<KerningEntry> NewKerning { get; }

Property Value

IReadOnlyList<KerningEntry>

PageCount

Current page count after this call.

public int PageCount { get; }

Property Value

int

PageGrown

True when Grow enlarged the pages during this call. The caller must reallocate its texture(s) at the new PageWidth x PageHeight and copy old contents at (0,0).

public bool PageGrown { get; }

Property Value

bool

PageHeight

Current page height in pixels after this call.

public int PageHeight { get; }

Property Value

int

PageWidth

Current page width in pixels after this call.

public int PageWidth { get; }

Property Value

int