Skip to content

Commit

Permalink
Drop this obsolete stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Sep 30, 2024
1 parent e86e5b6 commit 2ddd3b6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions scripts/dist.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
import argparse

from fontTools import subset
from fontTools.ttLib import TTFont, newTable
from fontTools.ttLib.tables import ttProgram


def fix_unhinted_font(font):
gasp = newTable("gasp")
# Set GASP so all sizes are smooth
gasp.gaspRange = {0xFFFF: 15}

program = ttProgram.Program()
assembly = ["PUSHW[]", "511", "SCANCTRL[]", "PUSHB[]", "4", "SCANTYPE[]"]
program.fromAssembly(assembly)

prep = newTable("prep")
prep.program = program

font["gasp"] = gasp
font["prep"] = prep
from fontTools.ttLib import TTFont


def main():
Expand Down Expand Up @@ -46,8 +29,6 @@ def main():
parts = [version] + str(name).split(";")[1:]
name.string = ";".join(parts)

fix_unhinted_font(font)

unicodes = set(font.getBestCmap().keys())
options = subset.Options()
options.set(
Expand Down

0 comments on commit 2ddd3b6

Please sign in to comment.