// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts.Tables.Cff {
///
/// Represents data from a CFF Private DICT, which contains font-level hinting
/// values and local subroutine references.
///
internal class CffPrivateDictionary
{
///
/// Initializes a new instance of the class.
///
/// The local subroutine byte buffers.
/// The default glyph width.
/// The nominal width bias.
public CffPrivateDictionary(byte[][]? localSubrRawBuffers, int defaultWidthX, int nominalWidthX)
{
this.LocalSubrRawBuffers = localSubrRawBuffers;
this.DefaultWidthX = defaultWidthX;
this.NominalWidthX = nominalWidthX;
}
///
/// Gets or sets the local subroutine raw byte buffers referenced by the Private DICT.
///
public byte[][]? LocalSubrRawBuffers { get; set; }
///
/// Gets or sets the default width for glyphs that do not specify a width in the charstring.
///
public int DefaultWidthX { get; set; }
///
/// Gets or sets the nominal width used as a bias for charstring width values.
///
public int NominalWidthX { get; set; }
}
}