This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| if input font is SFNT: | |
| - create normalised font | |
| - compress input font to WOFF2 | |
| - decompress WOFF2 | |
| - diff normalised and decompressed font | |
| else if input font is WOFF2: | |
| - decompress input font to SFNT | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Test that reconstructed 'glyf' and 'loca' table data are bitwise identical to | |
| the original, 'normalised' table data. | |
| """ | |
| from __future__ import print_function | |
| import sys | |
| import struct | |
| from fontTools.misc.py23 import * | |
| from fontTools.ttLib import TTFont |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import unittest | |
| class TestStringMethods(unittest.TestCase): | |
| def test_upper(self): | |
| self.assertEqual('foo'.upper(), 'FOO') | |
| def test_isupper(self): | |
| self.assertTrue('FOO'.isupper()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from __future__ import print_function, division, absolute_import | |
| from fontTools.ttLib import TTFont | |
| import sys | |
| from io import BytesIO | |
| import struct | |
| import hashlib | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import sys | |
| import os | |
| from fontTools.misc.py23 import open, StringIO, tounicode, tostr | |
| import difflib | |
| from glyphsLib import loads | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ Convert SVG paths to UFO glyphs. | |
| """ | |
| # Author: Cosimo Lupo | |
| # Email: [email protected] | |
| # License: Apache Software License 2.0 | |
| from __future__ import print_function, absolute_import | |
| __requires__ = ["svg.path", "ufoLib", "FontTools"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Lib/defcon/tools/unicodeTools.py b/Lib/defcon/tools/unicodeTools.py | |
| index 2edac23..f0ea587 100644 | |
| --- a/Lib/defcon/tools/unicodeTools.py | |
| +++ b/Lib/defcon/tools/unicodeTools.py | |
| @@ -2979,10 +2979,18 @@ _openClosePairText = """ | |
| 2018;LEFT SINGLE QUOTATION MARK;Pi | |
| 2019;RIGHT SINGLE QUOTATION MARK;Pf | |
| -201C;LEFT DOUBLE QUOTATION MARK;Pi | |
| +#201B;SINGLE HIGH-REVERSED-9 QUOTATION MARK;Pi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # compare fonts with ttx | |
| ttdiff () { | |
| if [ "$#" -lt 2 ] | |
| then | |
| echo "Usage: ttdiff FONT1.ttf FONT2.ttf [tables ...]" | |
| return 1 | |
| fi | |
| first="$1" | |
| if [ ! -f "$first" ]; then | |
| echo "File $first not found" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/m4/autotroll.m4 b/m4/autotroll.m4 | |
| index 658251b..b5060df 100644 | |
| --- a/m4/autotroll.m4 | |
| +++ b/m4/autotroll.m4 | |
| @@ -267,7 +267,7 @@ AC_DEFUN([AT_WITH_QT], | |
| dnl ( | |
| darwin*) | |
| at_darwin=yes | |
| - at_qmake_args='-spec macx-g++' | |
| + at_qmake_args='-spec macx-clang' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $ brew install --build-from-source --HEAD --with-qt /path/to/local/modified/formula/ttfautohint.rb | |
| class Ttfautohint < Formula | |
| desc "Auto-hinter for TrueType fonts" | |
| homepage "https://www.freetype.org/ttfautohint" | |
| url "https://downloads.sourceforge.net/project/freetype/ttfautohint/1.8.1/ttfautohint-1.8.1.tar.gz" | |
| sha256 "12df5120be194d2731e2a3c596892aa218681614c4f924e24279baf69bb7d4f9" | |
| bottle do | |
| cellar :any |
OlderNewer