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
| multipass: true | |
| plugins: | |
| - removeDoctype | |
| - removeXMLProcInst | |
| - removeComments | |
| - removeMetadata | |
| - removeXMLNS | |
| - removeEditorsNSData | |
| - cleanupAttrs | |
| - minifyStyles |
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
| # https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6sbix.html | |
| # requires fonttools lib (`pip install fonttools>=4.7.0`) | |
| import sys | |
| from fontTools.ttLib import TTFont | |
| font = TTFont(sys.argv[1]) | |
| sbix = font["sbix"] | |
| max_ppem = max(sbix.strikes.keys()) | |
| strike = sbix.strikes[max_ppem] |
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
| """ | |
| Save all gists from GitHub, including comments. | |
| Requires the PyGithub library (``pip install PyGithub>=1.47``). | |
| Pass a personal access token with the scope "gist" as the first | |
| argument. | |
| This probably won't work for large files (+10MiB), since they aren't | |
| returned by the GitHub API, and must be cloned instead. |
OlderNewer