optimise fonts
fonts are now loaded in a hierarchy: - title: smallest, loads first, "riki's fluffy little house" characters only - crit: loads next, contains ASCII + some other stuff, in weights 400-900 (for body text and headings) - full: loads last, contains everything (italics & monospace too)
This commit is contained in:
parent
6b707587ef
commit
2de872e664
15 changed files with 122 additions and 21 deletions
25
static/font/Makefile
Normal file
25
static/font/Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
TITLE := "riki's fluffy little house"
|
||||
CRIT_RANGES := "U+0020-007E,U+00A9,U+00B0,0+00D7,U+00F7,U+2000-206F"
|
||||
OT_FEATURES := \
|
||||
--layout-features+="ss03,ss04,ss05,ss06,ss08" \
|
||||
--layout-features-="dlig,case,frac,afrc,ordn,titl,sups,numr,sinf,dnom,zero,ss20,pnum,liga"
|
||||
|
||||
all: recursive-casl0.woff2 recursive-crit.woff2 recursive-title.woff2
|
||||
|
||||
recursive-casl0.woff2: recursive.woff2
|
||||
fonttools varLib.instancer $? -o $@ CASL=0
|
||||
|
||||
recursive-crit.woff2: recursive-subset-crit.woff2
|
||||
fonttools varLib.instancer $? -o $@ --static wght=400:900
|
||||
|
||||
recursive-title.woff2: recursive-subset-title.woff2
|
||||
fonttools varLib.instancer $? -o $@ --static wght=800:900
|
||||
|
||||
recursive-subset-crit.woff2: recursive.woff2
|
||||
fonttools subset $? --output-file=$@ --unicodes=$(CRIT_RANGES) $(OT_FEATURES) --ignore-missing-glyphs
|
||||
|
||||
recursive-subset-title.woff2: recursive.woff2
|
||||
fonttools subset $? --output-file=$@ --text=$(TITLE) $(OT_FEATURES) --ignore-missing-glyphs
|
||||
|
||||
clean:
|
||||
rm recursive-*.woff2
|
Loading…
Add table
Add a link
Reference in a new issue