make_vtt_src_font.sh 466 B

1234567891011121314
  1. # Create a source VTT font by merging vtt-hinting.ttx into the unhinted VF
  2. set -e
  3. SRC_TTF=fonts/unhinted/Roboto[ital,wdth,wght].ttf
  4. DST_TTF=sources/Roboto[ital,wdth,wght]_VTT.ttf
  5. if [ -f "$SRC_TTF" ]; then
  6. echo "Merging '$SRC_TTF' into '$DST_TTF'"
  7. cp $SRC_TTF $DST_TTF
  8. python -m vttLib mergefile sources/vtt-hinting.ttx $DST_TTF
  9. echo "VTT source font saved to '$DST_TTF'"
  10. else
  11. echo "'$SRC_TTF' does not exist. Please build the fonts first. See the Readme"
  12. fi