[ot-font] Use binary search for format12 cmap subtable
This commit is contained in:
parent
257d1adfa1
commit
ce34f0b07e
|
@ -985,6 +985,10 @@ struct GenericSortedArrayOf : GenericArrayOf<LenType, Type>
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
struct SortedArrayOf : GenericSortedArrayOf<USHORT, 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 */
|
} /* namespace OT */
|
||||||
|
|
||||||
|
|
|
@ -264,7 +264,7 @@ struct CmapSubtableLongSegmented
|
||||||
USHORT reserved; /* Reserved; set to 0. */
|
USHORT reserved; /* Reserved; set to 0. */
|
||||||
ULONG length; /* Byte length of this subtable. */
|
ULONG length; /* Byte length of this subtable. */
|
||||||
ULONG language; /* Ignore. */
|
ULONG language; /* Ignore. */
|
||||||
LongArrayOf<CmapSubtableLongGroup>
|
LongSortedArrayOf<CmapSubtableLongGroup>
|
||||||
groups; /* Groupings. */
|
groups; /* Groupings. */
|
||||||
public:
|
public:
|
||||||
DEFINE_SIZE_ARRAY (16, groups);
|
DEFINE_SIZE_ARRAY (16, groups);
|
||||||
|
|
Loading…
Reference in New Issue