[cmap] Document rationale for getBestCmap choice of subtable

Fixes https://github.com/fonttools/fonttools/issues/1367
This commit is contained in:
Behdad Esfahbod 2022-04-08 13:27:44 -06:00
parent 43e4315009
commit 17f71c0eb7

View File

@ -91,6 +91,11 @@ class table__c_m_a_p(DefaultTable.DefaultTable):
(0, 1), # Unicode 1.1
(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.
"""
for platformID, platEncID in cmapPreferences: