Skip to content

Commit

Permalink
Fix up Amiri Quran Colored font
Browse files Browse the repository at this point in the history
Many colors were missing.
  • Loading branch information
khaledhosny committed Jun 24, 2022
1 parent 4eb5fa2 commit 92ddea9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified AmiriQuran.ttf
Binary file not shown.
Binary file modified AmiriQuranColored.ttf
Binary file not shown.
12 changes: 6 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,11 @@ def makeCOLR(font):
"openkasratan-ar",
"highwaw-ar",
"seenabove-ar", # XXX: can be both a mark and a pause
"hamza.wasl",
"Dot",
"TwoDots",
"vTwoDots",
"ThreeDots",
"wasla-ar",
"madda-ar",
"dot",
"twodots",
"threedots",
)

pauses = (
Expand Down Expand Up @@ -538,7 +538,7 @@ def newLayer(name, colorID):
def getColor(glyphName):
for names, color in groups.items():
for name in names:
if glyphName == name or glyphName.startswith(name + "."):
if glyphName.startswith(name):
return palette.index(color)
return 0xFFFF

Expand Down

0 comments on commit 92ddea9

Please sign in to comment.