mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[ot-font] Use binary search for format12 cmap subtable
This commit is contained in:
1 parent
257d1adfa1
commit
ce34f0b07e
2 files changed
+5
-1
No files matched your search
@@ -985,6 +985,10 @@ struct GenericSortedArrayOf : GenericArrayOf<LenType, Type>
|
||||
template <typename Type>
|
||||
struct SortedArrayOf : GenericSortedArrayOf<USHORT, Type> {};
|
||||
|
||||
/* A sorted array with a ULONG number of elements. */
|
||||
template <typename Type>
|
||||
struct LongSortedArrayOf : GenericSortedArrayOf<ULONG, Type> {};
|
||||
|
||||
|
||||
} /* namespace OT */
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ struct CmapSubtableLongSegmented
|
||||
USHORT reserved; /* Reserved; set to 0. */
|
||||
ULONG length; /* Byte length of this subtable. */
|
||||
ULONG language; /* Ignore. */
|
||||
LongArrayOf<CmapSubtableLongGroup>
|
||||
LongSortedArrayOf<CmapSubtableLongGroup>
|
||||
groups; /* Groupings. */
|
||||
public:
|
||||
DEFINE_SIZE_ARRAY (16, groups);
|
||||
|
||||
Reference in new issue
Block a user