ImageSharp/SixLabors.Fonts/Tables/AdvancedTypographic/GSub/NotImplementedSubTable.cs
2026-08-03 22:31:27 +02:00

30 lines
914 B
C#

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts.Tables.AdvancedTypographic.GSub {
/// <summary>
/// A placeholder lookup subtable used when the lookup type is not implemented.
/// This subtable always returns <see langword="false"/> for substitution attempts.
/// </summary>
internal class NotImplementedSubTable : LookupSubTable
{
/// <summary>
/// Initializes a new instance of the <see cref="NotImplementedSubTable"/> class.
/// </summary>
public NotImplementedSubTable()
: base(default, 0)
{
}
/// <inheritdoc />
public override bool TrySubstitution(
FontMetrics fontMetrics,
GSubTable table,
GlyphSubstitutionCollection collection,
Tag feature,
int index,
int count)
=> false;
}
}