Browse Source

Stop making EOTs

pull/116/head
Jany Belluz 3 years ago
parent
commit
ce0925cf8c
  1. 6
      README.md
  2. 4
      Scripts/generate-css-decl
  3. 1
      Scripts/generate-other-formats

6
README.md

@ -72,10 +72,8 @@ The build process requires:
* FontForge with python scripting support,
* `ttfautohint`
* `sfnt2woff` (from the `woff-tools` package on Ubuntu)
* `ttf2eot`, for example from [this
repository](https://github.com/harrastia/ttf2eot).
* `woff2_compress` from [the Google WOFF2
tools](https://github.com/google/woff2)
tools](https://github.com/google/woff2) or `woff2` package on Ubuntu
Run `make`. You should see green stuff and some "OK" messages.
@ -101,7 +99,7 @@ use on the web, along with the matching CSS font declarations. To use them,
you must combine in the same folder:
* a custom `.css` file that you can assemble from the `*-decl.css` fragments
(you can only pick the styles that you need, e.g. normal and bold)
* the matching `.svg`, `.woff`, `.woff2`, `.eot` files from `Webfonts/`
* the matching `.svg`, `.woff`, `.woff2` files from `Webfonts/`
* the matching `.ttf` files from the `TTF/` folder
* the matching `.otf` files from the `OTF/` folder.

4
Scripts/generate-css-decl

@ -45,9 +45,7 @@ fi
cat > "Webfonts/${basename}-decl.css" <<EOF
@font-face {
font-family: '${familyname}';
src: url('${basename}.eot'); /* IE 9 Compatibility Mode */
src: url('${basename}.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
url('${basename}.woff2') format('woff2'),
src: url('${basename}.woff2') format('woff2'),
url('${basename}.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
url('${basename}.ttf') format('truetype'), /* Safari, Android, iOS */
url('${basename}.svg#${fontname}') format('svg'); /* Chrome < 4, Legacy iOS */

1
Scripts/generate-other-formats

@ -11,4 +11,3 @@ sfnt2woff "TTF/${basename}.ttf"
mv "TTF/${basename}.woff" Webfonts
woff2_compress "TTF/${basename}.ttf"
mv "TTF/${basename}.woff2" Webfonts
ttf2eot "TTF/${basename}.ttf" > "Webfonts/${basename}.eot"

Loading…
Cancel
Save