Skip to content

Commit

Permalink
Use the same winAscent and winDescent across the family
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Dec 3, 2022
1 parent eb865a1 commit 23d6eb0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 19 deletions.
Binary file modified fonts/Amiri-Bold.ttf
Binary file not shown.
Binary file modified fonts/Amiri-BoldItalic.ttf
Binary file not shown.
Binary file modified fonts/Amiri-Italic.ttf
Binary file not shown.
Binary file modified fonts/Amiri-Regular.ttf
Binary file not shown.
Binary file modified fonts/AmiriQuran.ttf
Binary file not shown.
Binary file modified fonts/AmiriQuranColored.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/build.py
Expand Up @@ -383,8 +383,8 @@ def makeQuran(options):
# bigger font bbox that the regular fonts.
head = otf["head"]
os_2 = otf["OS/2"]
os_2.usWinAscent = head.yMax
os_2.usWinDescent = abs(head.yMin)
os_2.usWinAscent = max(head.yMax, os_2.usWinAscent)
os_2.usWinDescent = max(abs(head.yMin), os_2.usWinDescent)

otf.save(options.output)

Expand Down
26 changes: 9 additions & 17 deletions sources/Amiri.glyphs
@@ -1,5 +1,5 @@
{
.appVersion = "3139";
.appVersion = "3148";
customParameters = (
{
name = hheaAscender;
Expand All @@ -26,6 +26,14 @@ name = typoLineGap;
value = 0;
},
{
name = winAscent;
value = 1850;
},
{
name = winDescent;
value = 910;
},
{
name = underlinePosition;
value = -512;
},
Expand Down Expand Up @@ -6389,14 +6397,6 @@ ascender = 1124;
capHeight = 646;
customParameters = (
{
name = winAscent;
value = 1814;
},
{
name = winDescent;
value = 898;
},
{
name = postscriptFullName;
value = Amiri;
},
Expand All @@ -6419,14 +6419,6 @@ ascender = 1124;
capHeight = 646;
customParameters = (
{
name = winAscent;
value = 1822;
},
{
name = winDescent;
value = 906;
},
{
name = postscriptFullName;
value = "Amiri Bold";
},
Expand Down

0 comments on commit 23d6eb0

Please sign in to comment.