Last active
February 9, 2025 21:28
Convert MLModern from Type 1 format to OTF and WOFF2
This file contains 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 fontforge | |
brew install woff2 | |
curl -L http://mirrors.ctan.org/fonts/mlmodern.zip > mlmodern.zip | |
unzip mlmodern.zip | |
cd mlmodern/type1/ | |
fontforge -lang=ff -c 'Open($1); Generate($1:r + ".otf")' mlmr12.pfb | |
fontforge -lang=ff -c 'Open($1); Generate($1:r + ".otf")' mlmri12.pfb | |
fontforge -lang=ff -c 'Open($1); Generate($1:r + ".otf")' mlmbx12.pfb | |
woff2_compress mlmr12.otf | |
woff2_compress mlmri12.otf | |
woff2_compress mlmbx12.otf | |
mv mlmr12.woff2 mlmodern-regular.woff2 | |
mv mlmri12.woff2 mlmodern-italic.woff2 | |
mv mlmbx12.woff2 mlmodern-bold.woff2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment