mirror of
https://github.com/belluzj/fantasque-sans.git
synced 2024-12-22 07:21:31 +01:00
Stop making EOTs
This commit is contained in:
parent
96a3d88ed0
commit
ce0925cf8c
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user