Class SDFSettings
Settings for SDF text rendering quality.
Inherited Members
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
[Serializable]
public class SDFSettings
Fields
BoldWeight
Faux-bold stroke dilation for bold glyphs, measured in atlas texels.
Declaration
[Tooltip("The faux-bold stroke dilation applied when rendering bold text, measured in atlas texels. Higher values produce heavier bold glyphs; values above roughly 1 texel start to round corners and soften edges. Converted to an SDF distance offset at render time using the font's atlas padding, so the weight stays consistent across font atlases.")]
[Range(0, 3)]
public float BoldWeight
Field Value
| Type | Description |
|---|---|
| float |
DefaultLineHeight
Line height multiplier a view starts with when nothing assigns one explicitly.
Declaration
[Tooltip("The line height a text mode view starts with. 1.0 is the font's natural line height. Lower values pack the rows closer together without changing the size of the glyphs, first by taking up the empty space a line does not use, and below roughly 0.82 by letting glyphs reach into the rows above and below. Higher values spread the rows apart. A view that is given a line height directly, such as a terminal using its own line spacing setting, keeps that value instead.")]
[Range(0.5, 3)]
public float DefaultLineHeight
Field Value
| Type | Description |
|---|---|
| float |
ItalicShear
Italic shear factor applied to UV coordinates.
Declaration
[Tooltip("The horizontal shear factor applied to glyph geometry when rendering italic text. Positive values slant the text to the right. Typical values range from 0.15 to 0.25 for a natural italic appearance.")]
[Range(0, 0.5)]
public float ItalicShear
Field Value
| Type | Description |
|---|---|
| float |
Smoothing
SDF smoothing scale factor.
Declaration
[Tooltip("The smoothing scale factor applied to SDF glyph edges. Higher values produce softer, more anti-aliased edges at the cost of slightly blurrier text. Lower values produce sharper edges but may show aliasing artifacts at small sizes.")]
[Range(0.01, 10)]
public float Smoothing
Field Value
| Type | Description |
|---|---|
| float |
Threshold
SDF distance threshold for normal weight glyphs.
Declaration
[Tooltip("The signed distance field threshold used for normal-weight glyph rendering. Lower values produce thinner glyphs, higher values produce thicker glyphs. This controls the cutoff point where the SDF field transitions from inside to outside the glyph shape.")]
[Range(0, 1)]
public float Threshold
Field Value
| Type | Description |
|---|---|
| float |