Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Typography.OpenFont/Tables.AdvancedLayout/IGlyphIndexList.cs
2024-12-30 04:21:24 +08:00

36 lines
1007 B
C#

//Apache2, 2016-present, WinterDev
namespace Typography.OpenFont.Tables
{
/// <summary>
/// replaceable glyph index list
/// </summary>
public interface IGlyphIndexList
{
int Count { get; }
ushort this[int index] { get; }
/// <summary>
/// remove:add_new 1:1
/// </summary>
/// <param name="index"></param>
/// <param name="newGlyphIndex"></param>
void Replace(int index, ushort newGlyphIndex);
/// <summary>
/// remove:add_new >=1:1
/// </summary>
/// <param name="index"></param>
/// <param name="removeLen"></param>
/// <param name="newGlyphIndex"></param>
void Replace(int index, int removeLen, ushort newGlyphIndex);
/// <summary>
/// remove: add_new 1:>=1
/// </summary>
/// <param name="index"></param>
/// <param name="newGlyphIndices"></param>
void Replace(int index, ushort[] newGlyphIndices);
}
}