Mappy / filter-font

Wrapper around fonttools (pyftsubset) to extract characters of a font for webperfs

Home Page:https://hub.docker.com/r/mappydt/filter-font/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrapper around fonttools (pyftsubset) to extract characters of a font

Python script that automate the extraction of a subset of a font. useful for CSS3 property unicode-range

docker run -it --rm \
  -e FONT_NAME=myfont.woff  \
  -e FONT_FILES_KEYS=key1 key2  \
  -e USERID=${UID}  \
  -v where-my-font-and-light-range-is/:/tmp/in/  \
  -v where-to-write-less/:/tmp/less/  \
  -v where-to-write-font/:/tmp/font  \
  fonttools

Generate 2 fonts per key plus 2 for the rest

  • myfont-key1.woff
  • myfont-key1.woff2
  • myfont-key2.woff
  • myfont-key2.woff2
  • myfont-the-rest.woff
  • myfont-the-rest.woff2

About

Wrapper around fonttools (pyftsubset) to extract characters of a font for webperfs

https://hub.docker.com/r/mappydt/filter-font/


Languages

Language:Shell 61.7%Language:Python 31.8%Language:Dockerfile 6.5%