// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts.Tables.Cff {
///
/// Represents a Font DICT entry from the FDArray in a CIDFont.
/// Each Font DICT contains a reference to its own Private DICT and local subroutines.
///
internal class FontDict
{
///
/// Initializes a new instance of the class.
///
/// The Font DICT name SID.
/// The size in bytes of the associated Private DICT.
/// The offset to the associated Private DICT.
public FontDict(int name, int dictSize, int dictOffset)
{
this.FontName = name;
this.PrivateDicSize = dictSize;
this.PrivateDicOffset = dictOffset;
}
///
/// Gets or sets the Font DICT name SID.
///
public int FontName { get; set; }
///
/// Gets the size in bytes of the associated Private DICT.
///
public int PrivateDicSize { get; }
///
/// Gets the offset to the associated Private DICT.
///
public int PrivateDicOffset { get; }
///
/// Gets or sets the local subroutine buffers from this Font DICT's Private DICT.
///
public byte[][]? LocalSubr { get; set; }
///
/// Gets or sets the variation store index (CFF2 vsindex operator) for this Font DICT.
///
public int VsIndex { get; set; }
}
}