SvgGlyph Struct

A glyph a font describes with an SVG document (the SVG table): where the document is in the font data.

public readonly struct SvgGlyph : IEquatable<SvgGlyph>
Implements

Constructors

NameDescription
SvgGlyph(int, int, int, int, int, bool)A glyph a font describes with an SVG document (the SVG table): where the document is in the font data.

SvgGlyph(int, int, int, int, int, bool)

A glyph a font describes with an SVG document (the SVG table): where the document is in the font data.

public SvgGlyph(int GlyphId, int FirstGlyphId, int LastGlyphId, int Offset, int Length, bool IsCompressed)

Parameters

GlyphId int
The glyph: the document has an element whose identifier is glyph followed by this number.
FirstGlyphId int
The first glyph of the range of glyphs the document describes.
LastGlyphId int
The last glyph of the range of glyphs the document describes.
Offset int
The position of the document in the bytes of the font.
Length int
The length of the document in the font, compressed or not.
IsCompressed bool
Whether the document is compressed with gzip; FontFace.GetSvgDocument expands it.

Properties

NameDescription
FirstGlyphIdThe first glyph of the range of glyphs the document describes.
GlyphIdThe glyph: the document has an element whose identifier is glyph followed by this number.
IsCompressedWhether the document is compressed with gzip; FontFace.GetSvgDocument expands it.
LastGlyphIdThe last glyph of the range of glyphs the document describes.
LengthThe length of the document in the font, compressed or not.
OffsetThe position of the document in the bytes of the font.

FirstGlyphId

SvgGlyph.cs

The first glyph of the range of glyphs the document describes.

public int FirstGlyphId { get; init; }

Property value

int

The glyph: the document has an element whose identifier is glyph followed by this number.

public int GlyphId { get; init; }

Property value

int

IsCompressed

SvgGlyph.cs

Whether the document is compressed with gzip; FontFace.GetSvgDocument expands it.

public bool IsCompressed { get; init; }

Property value

bool

LastGlyphId

SvgGlyph.cs

The last glyph of the range of glyphs the document describes.

public int LastGlyphId { get; init; }

Property value

int

The length of the document in the font, compressed or not.

public int Length { get; init; }

Property value

int

The position of the document in the bytes of the font.

public int Offset { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(int, int, int, int, int, bool)
Equals(SvgGlyph)
Equals(object)
GetHashCode()
ToString()

Deconstruct(int, int, int, int, int, bool)

public void Deconstruct(out int GlyphId, out int FirstGlyphId, out int LastGlyphId, out int Offset, out int Length, out bool IsCompressed)

Parameters

GlyphId int
FirstGlyphId int
LastGlyphId int
Offset int
Length int
IsCompressed bool

No documentation is available.

Equals overloads

Equals(SvgGlyph)

public bool Equals(SvgGlyph other)
Parameters
other SvgGlyph
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(SvgGlyph, SvgGlyph)
operator !=(SvgGlyph, SvgGlyph)

operator ==(SvgGlyph, SvgGlyph)

public static bool operator ==(SvgGlyph left, SvgGlyph right)

Parameters

left SvgGlyph
right SvgGlyph

Returns

bool

No documentation is available.

operator !=(SvgGlyph, SvgGlyph)

public static bool operator !=(SvgGlyph left, SvgGlyph right)

Parameters

left SvgGlyph
right SvgGlyph

Returns

bool

No documentation is available.