Table of Contents

Class FontMetricsCache

Namespace
Xui.Core.Canvas
Assembly
Xui.Core.dll

Fixed-capacity, allocation-free-after-construction LRU cache of font-wide metrics. One instance belongs to a drawing or measurement context because native font resolution is surface-specific.

public sealed class FontMetricsCache : FontCache<FontMetrics>
Inheritance
FontMetricsCache
Inherited Members

Constructors

FontMetricsCache()

Initializes the standard 64-entry metrics cache.

public FontMetricsCache()

Fields

Capacity

Maximum number of distinct font descriptions retained by this cache.

public const int Capacity = 64

Field Value

int