[cmap] Document rationale for getBestCmap choice of subtable
Fixes https://github.com/fonttools/fonttools/issues/1367
This commit is contained in:
parent
43e4315009
commit
17f71c0eb7
@ -91,6 +91,11 @@ class table__c_m_a_p(DefaultTable.DefaultTable):
|
|||||||
(0, 1), # Unicode 1.1
|
(0, 1), # Unicode 1.1
|
||||||
(0, 0) # Unicode 1.0
|
(0, 0) # Unicode 1.0
|
||||||
|
|
||||||
|
This particular order matches what HarfBuzz uses to choose what
|
||||||
|
subtable to use by default. This order prefers the largest-repertoire
|
||||||
|
subtable, and among those, prefers the Windows-platform over the
|
||||||
|
Unicode-platform as the former has wider support.
|
||||||
|
|
||||||
This order can be customized via the ``cmapPreferences`` argument.
|
This order can be customized via the ``cmapPreferences`` argument.
|
||||||
"""
|
"""
|
||||||
for platformID, platEncID in cmapPreferences:
|
for platformID, platEncID in cmapPreferences:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user