Table of Contents

Class AtlasVariant

Namespace
KernSmith
Assembly
KernSmith.dll

Declares an additional character-set rendering, packed into its own atlas region(s) and described by its own BmFontModel, so it can be sampled as an ordinary RGBA glyph with no shader required to unpack it. See phase-181 plan doc (issue #175) for background.

public sealed record AtlasVariant : IEquatable<AtlasVariant>
Inheritance
AtlasVariant
Implements
Inherited Members

Constructors

AtlasVariant(string, AtlasVariantKind, int, bool)

Declares an additional character-set rendering, packed into its own atlas region(s) and described by its own BmFontModel, so it can be sampled as an ordinary RGBA glyph with no shader required to unpack it. See phase-181 plan doc (issue #175) for background.

public AtlasVariant(string Name, AtlasVariantKind Kind, int BlurRadius = 0, bool HardShadow = false)

Parameters

Name string

Identifies this variant (e.g. "shadow"). Used as the dictionary key in VariantModels and as the file-name suffix when written to disk.

Kind AtlasVariantKind

The kind of variant rendering to produce.

BlurRadius int

Blur radius applied to the variant shape, in pixels.

HardShadow bool

When true, produces a crisp silhouette instead of a soft-edged one.

Properties

BlurRadius

Blur radius applied to the variant shape, in pixels.

public int BlurRadius { get; init; }

Property Value

int

HardShadow

When true, produces a crisp silhouette instead of a soft-edged one.

public bool HardShadow { get; init; }

Property Value

bool

Kind

The kind of variant rendering to produce.

public AtlasVariantKind Kind { get; init; }

Property Value

AtlasVariantKind

Name

Identifies this variant (e.g. "shadow"). Used as the dictionary key in VariantModels and as the file-name suffix when written to disk.

public string Name { get; init; }

Property Value

string