FontData Class
The bytes of a font file, kept for the lifetime of the fonts created from it and shared by the faces of a collection.
public sealed class FontDataRemarks
The tables are read in place, never copied. The array is an exact garbage-collected array, bounded by FontResourceLimits.MaxFontBytes when it is created: a font is an immutable object without owner or lifetime, so its bytes cannot be rented from a pool.
Properties
| Name | Description |
|---|---|
| Bytes | Gets the bytes of the font, in the sfnt format: a compressed container is expanded. |
| Environment | Gets the environment the font was loaded with. |
| Limits | Gets the limits of the environment the font was loaded with: they bound the work of decoding a glyph and the size of a text. |
| UseEmbeddedBitmaps | Gets a value indicating whether the bitmaps without colors of the font replace its outlines at the sizes they are made for. |
Bytes
FontData.csGets the bytes of the font, in the sfnt format: a compressed container is expanded.
public ReadOnlyMemory<byte> Bytes { get; }Property value
Environment
FontData.csGets the environment the font was loaded with.
public FontEnvironment Environment { get; }Property value
Limits
FontData.csGets the limits of the environment the font was loaded with: they bound the work of decoding a glyph and the size of a text.
public FontResourceLimits Limits { get; }