PeachPDF
PeachPDF
RuneRange Struct
An inclusive range of Unicode scalar values (codepoints), e.g. the U+0000-00FF of a CSS
@font-faceunicode-range descriptor, or the coverage a font declares for a face
registered via PdfGenerator’s AddFontFromStream.
Both ends are inclusive - unlike System.Range, which is half-open and int/index
based - and the endpoints are real System.Text.Runes, so surrogate/out-of-range values can’t be
expressed by construction.
public readonly record struct RuneRange : System.IEquatable<PeachPDF.RuneRange>
Implements System.IEquatable<RuneRange>
| Constructors | |
|---|---|
| RuneRange(Rune, Rune) | An inclusive range of Unicode scalar values (codepoints), e.g. the U+0000-00FF of a CSS @font-faceunicode-range descriptor, or the coverage a font declares for a face registered via PdfGenerator’s AddFontFromStream. Both ends are inclusive - unlike System.Range, which is half-open and int/index based - and the endpoints are real System.Text.Runes, so surrogate/out-of-range values can’t be expressed by construction. |
| Methods | |
|---|---|
| Contains(Rune) | Whether rune lies within this range (both ends inclusive). |