39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
namespace SixLabors.Fonts.Tables.Cff {
|
|
/// <summary>
|
|
/// Represents a parsed CFF font containing the top-level dictionary and glyph data.
|
|
/// </summary>
|
|
internal class CffFont
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CffFont"/> class.
|
|
/// </summary>
|
|
/// <param name="name">The PostScript font name.</param>
|
|
/// <param name="metrics">The Top DICT data containing font-wide properties.</param>
|
|
/// <param name="glyphs">The parsed glyph data array.</param>
|
|
public CffFont(string name, CffTopDictionary metrics, CffGlyphData[] glyphs)
|
|
{
|
|
this.FontName = name;
|
|
this.Metrics = metrics;
|
|
this.Glyphs = glyphs;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the PostScript font name.
|
|
/// </summary>
|
|
public string FontName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Top DICT data containing font-wide metrics and properties.
|
|
/// </summary>
|
|
public CffTopDictionary Metrics { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the array of glyph data parsed from the CharStrings INDEX.
|
|
/// </summary>
|
|
public CffGlyphData[] Glyphs { get; }
|
|
}
|
|
}
|