Table of Contents

Class ExtendedMetadata

Namespace
KernSmith.Output.Model
Assembly
KernSmith.dll

KernSmith-specific metadata for generation settings that are not part of the standard BMFont format.

public sealed class ExtendedMetadata
Inheritance
ExtendedMetadata
Inherited Members

Properties

AdvanceAdjustY

Global vertical advance adjustment (Hiero pad.advance.y), if non-zero. BMFont has no per-glyph yadvance field, so this is surfaced here so it round-trips; a standard BMFont file without this field reads back as null.

public float? AdvanceAdjustY { get; init; }

Property Value

float?

ColorFont

True if color font rendering (COLR/CPAL) was enabled during generation.

public bool? ColorFont { get; init; }

Property Value

bool?

FallbackCharacter

Unicode codepoint of the fallback character for missing glyphs, if configured.

public int? FallbackCharacter { get; init; }

Property Value

int?

GeneratorVersion

KernSmith library version that generated this font.

public required string GeneratorVersion { get; init; }

Property Value

string

GradientBottomColor

Gradient bottom/end color as hex RGB (e.g. "DC143C"), if gradient was used.

public string? GradientBottomColor { get; init; }

Property Value

string

GradientTopColor

Gradient top/start color as hex RGB (e.g. "FFD700"), if gradient was used.

public string? GradientTopColor { get; init; }

Property Value

string

OutlineThickness

Outline thickness, if outline post-processor was used.

public float? OutlineThickness { get; init; }

Property Value

float?

SdfSpread

SDF spread value, if SDF mode was used.

public int? SdfSpread { get; init; }

Property Value

int?

ShadowColor

Shadow color as hex RGB (e.g. "000000"), if shadow was used.

public string? ShadowColor { get; init; }

Property Value

string

ShadowOffsetX

Shadow X offset, if shadow post-processor was used.

public int? ShadowOffsetX { get; init; }

Property Value

int?

ShadowOffsetY

Shadow Y offset, if shadow post-processor was used.

public int? ShadowOffsetY { get; init; }

Property Value

int?

SuperSampleLevel

Super sampling level, if super sampling was used.

public int? SuperSampleLevel { get; init; }

Property Value

int?

VariantOf

Name of the primary font this model is a variant of (e.g. "shadow" variant points back at its base font), or null on the primary model itself. See AtlasVariant.

public string? VariantOf { get; init; }

Property Value

string

Variants

Names of the AtlasVariants generated alongside this (primary) model, or null on a variant model itself. Lets a variant/primary pair discover each other without relying on file-naming convention, since stock BMFont has no such field.

public IReadOnlyList<string>? Variants { get; init; }

Property Value

IReadOnlyList<string>

VariationAxes

Variable font axis values used during generation.

public IReadOnlyDictionary<string, float>? VariationAxes { get; init; }

Property Value

IReadOnlyDictionary<string, float>