// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts.Tables.General.Svg {
///
/// Represents an entry in the SVG Document Index of the SVG table.
/// Each entry maps a contiguous range of glyph IDs to an SVG document.
///
///
internal readonly struct SvgDocumentIndexEntry
{
///
/// Initializes a new instance of the struct.
///
/// The first glyph ID in the range (inclusive).
/// The last glyph ID in the range (inclusive).
/// The offset from the beginning of the SVG Document Index to the SVG document.
/// The length of the SVG document data in bytes.
public SvgDocumentIndexEntry(ushort startGlyphId, ushort endGlyphId, uint svgDocOffset, uint svgDocLength)
{
this.StartGlyphId = startGlyphId;
this.EndGlyphId = endGlyphId;
this.SvgDocOffset = svgDocOffset;
this.SvgDocLength = svgDocLength;
}
///
/// Gets the first glyph ID in this range (inclusive).
///
public ushort StartGlyphId { get; }
///
/// Gets the last glyph ID in this range (inclusive).
///
public ushort EndGlyphId { get; }
///
/// Gets the offset from the beginning of the SVG Document Index to the SVG document.
///
public uint SvgDocOffset { get; }
///
/// Gets the length of the SVG document data in bytes.
///
public uint SvgDocLength { get; }
}
}