OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env bash |
| 2 # |
| 3 # This script creates the optional x-*-hinting.txt files from fonts that are |
| 4 # not checked in for copyright or file size reasons. |
| 5 # |
| 6 # Run it from this directory (testdata). |
| 7 # |
| 8 # It has only been tested on an Ubuntu 12.04 system. |
| 9 |
| 10 set -e |
| 11 |
| 12 : ${FONTDIR:=/usr/share/fonts/truetype} |
| 13 |
| 14 ln -sf $FONTDIR/droid/DroidSansJapanese.ttf x-droid-sans-japanese.ttf |
| 15 ln -sf $FONTDIR/msttcorefonts/Arial_Bold.ttf x-arial-bold.ttf· |
| 16 ln -sf $FONTDIR/msttcorefonts/Times_New_Roman.ttf x-times-new-roman.ttf |
| 17 ln -sf $FONTDIR/ttf-dejavu/DejaVuSans-Oblique.ttf x-deja-vu-sans-oblique.ttf |
| 18 |
| 19 ${CC:=gcc} ../cmd/print-glyph-points/main.c $(pkg-config --cflags --libs freetyp
e2) -o print-glyph-points |
| 20 |
| 21 ./print-glyph-points 9 x-droid-sans-japanese.ttf sans_hinting > x-droid-sans-j
apanese-9pt-sans-hinting.txt |
| 22 ./print-glyph-points 9 x-droid-sans-japanese.ttf with_hinting > x-droid-sans-j
apanese-9pt-with-hinting.txt |
| 23 ./print-glyph-points 11 x-arial-bold.ttf sans_hinting > x-arial-bold-1
1pt-sans-hinting.txt |
| 24 ./print-glyph-points 11 x-arial-bold.ttf with_hinting > x-arial-bold-1
1pt-with-hinting.txt |
| 25 ./print-glyph-points 13 x-times-new-roman.ttf sans_hinting > x-times-new-ro
man-13pt-sans-hinting.txt |
| 26 ./print-glyph-points 13 x-times-new-roman.ttf with_hinting > x-times-new-ro
man-13pt-with-hinting.txt |
| 27 ./print-glyph-points 17 x-deja-vu-sans-oblique.ttf sans_hinting > x-deja-vu-sans
-oblique-17pt-sans-hinting.txt |
| 28 ./print-glyph-points 17 x-deja-vu-sans-oblique.ttf with_hinting > x-deja-vu-sans
-oblique-17pt-with-hinting.txt |
| 29 |
| 30 rm print-glyph-points |
OLD | NEW |