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
NamestringIdentifies this variant (e.g. "shadow"). Used as the dictionary key in VariantModels and as the file-name suffix when written to disk.
KindAtlasVariantKindThe kind of variant rendering to produce.
BlurRadiusintBlur radius applied to the variant shape, in pixels.
HardShadowboolWhen 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
HardShadow
When true, produces a crisp silhouette instead of a soft-edged one.
public bool HardShadow { get; init; }
Property Value
Kind
The kind of variant rendering to produce.
public AtlasVariantKind Kind { get; init; }
Property Value
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; }