usar pyftsubset dentro de hain en lugar de glyphhanger
sutty/haini.sh#9
This commit is contained in:
parent
fd3d3fdfd7
commit
20d6aac0cb
1 changed files with 6 additions and 4 deletions
10
Makefile
10
Makefile
|
@ -99,15 +99,17 @@ assets/js/pack.js: $(js)
|
||||||
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
|
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
|
||||||
# node_modules/font-awesome/scss/_variables.scss
|
# node_modules/font-awesome/scss/_variables.scss
|
||||||
assets/fonts/forkawesome-webfont.woff2: fa.txt
|
assets/fonts/forkawesome-webfont.woff2: fa.txt
|
||||||
grep -v "^#" fa.txt | sed "s/^/U+/" | cut -d " " -f 1 | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}"
|
grep -v "^#" fa.txt | sed "s/^/U+/" | cut -d " " -f 1 | tr "\n" "," | xargs -rI {} make hain args="pyftsubset node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --output-file=$@ --unicodes={} --layout-features='*' --flavor=woff2"
|
||||||
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
|
|
||||||
|
# Rangos Unicode para alfabeto latino.
|
||||||
|
latin_unicode := "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD"
|
||||||
|
|
||||||
# Generar woff2 reducidas al alfabeto latino
|
# Generar woff2 reducidas al alfabeto latino
|
||||||
%-subset.woff2: %.ttf
|
%-subset.woff2: %.ttf
|
||||||
glyphhanger --subset=$< --formats=woff2 --LATIN
|
make hain args="pyftsubset $< --output-file=$@ --unicodes=$(latin_unicode) --layout-features='*' --flavor=woff2"
|
||||||
|
|
||||||
# Generar woff2 reducidas al alfabeto latino
|
# Generar woff2 reducidas al alfabeto latino
|
||||||
%-subset.woff2: %.otf
|
%-subset.woff2: %.otf
|
||||||
glyphhanger --subset=$< --formats=woff2 --LATIN
|
make hain args="pyftsubset $< --output-file=$@ --unicodes=$(latin_unicode) --layout-features='*' --flavor=woff2"
|
||||||
|
|
||||||
.PHONY: always
|
.PHONY: always
|
||||||
|
|
Loading…
Reference in a new issue