summaryrefslogtreecommitdiff
path: root/fc-lang/fc-lang.py
diff options
context:
space:
mode:
authorMike FABIAN <mfabian@redhat.com>2022-12-05 11:07:59 +0100
committerMike FABIAN <mfabian@redhat.com>2022-12-09 09:23:19 +0100
commitce9cbe36d81efaafb9e60b6899665b370e872e81 (patch)
tree9cad7ca1536e653266c1dd4a54d2ac43b5063872 /fc-lang/fc-lang.py
parent9097ada0ef262e83b9507eebf731e6e47eb9ec96 (diff)
downloadfontconfig-ce9cbe36d81efaafb9e60b6899665b370e872e81.tar.gz
Change index type to 16 bit and bump cache version to 9
The number of .orth files is now > 256, therefore the index type needs to be 16 bit.
Diffstat (limited to 'fc-lang/fc-lang.py')
-rwxr-xr-xfc-lang/fc-lang.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fc-lang/fc-lang.py b/fc-lang/fc-lang.py
index cc1dea8..8facea6 100755
--- a/fc-lang/fc-lang.py
+++ b/fc-lang/fc-lang.py
@@ -251,7 +251,7 @@ if __name__=='__main__':
print('#define fcLangCharSetIndices (fcLangData.langIndices)')
print('#define fcLangCharSetIndicesInv (fcLangData.langIndicesInv)')
- assert len(sets) < 256 # FIXME: need to change index type to 16-bit below then
+ assert len(sets) < 65536 # FIXME: need to change index type to 32-bit below then
print('''
static const struct {{
@@ -262,7 +262,7 @@ static const struct {{
{} langIndices[{}];
{} langIndicesInv[{}];
}} fcLangData = {{'''.format(len(sets), len(leaves), tn, tn,
- 'FcChar8 ', len(sets), 'FcChar8 ', len(sets)))
+ 'FcChar16 ', len(sets), 'FcChar16 ', len(sets)))
# Dump sets
print('{')