PeachDrawing.Core
PeachDrawing.Core
FontFaceDescriptors Struct
What an @font-face rule declares about the face it registers, in place of what the font file says about itself: the weights,
widths and oblique angles it covers (CSS Fonts 4 section 4.4, where each descriptor is a value or a range) and whether it is
italic. A null member says nothing, so the file is asked, and a variable font then covers the range of its own axes.
public readonly record struct FontFaceDescriptors : System.IEquatable<PeachDrawing.Core.FontFaceDescriptors>
Implements System.IEquatable<FontFaceDescriptors>
| Constructors | |
|---|---|
| FontFaceDescriptors(Nullable<AxisRange>, Nullable<bool>, Nullable<AxisRange>, Nullable<AxisRange>) | What an @font-face rule declares about the face it registers, in place of what the font file says about itself: the weights, widths and oblique angles it covers (CSS Fonts 4 section 4.4, where each descriptor is a value or a range) and whether it is italic. A null member says nothing, so the file is asked, and a variable font then covers the range of its own axes. |
| Properties | |
|---|---|
| IsItalic | Whether the face is italic or oblique. |
| Oblique | The oblique angles the face covers, in degrees leaning to the right. |
| Weight | The weights the face covers, on the CSS scale of 1 to 1000. |
| Width | The widths the face covers, as percentages of the normal width. |