From 965833a737be72114fa2954b7f215b8dfa8eb107 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Tue, 28 Jul 2015 17:31:27 -0700 Subject: Added godeps and the source for the go freetype library --- .../testdata/make-other-hinting-txts.sh | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 Godeps/_workspace/src/code.google.com/p/freetype-go/testdata/make-other-hinting-txts.sh (limited to 'Godeps/_workspace/src/code.google.com/p/freetype-go/testdata/make-other-hinting-txts.sh') diff --git a/Godeps/_workspace/src/code.google.com/p/freetype-go/testdata/make-other-hinting-txts.sh b/Godeps/_workspace/src/code.google.com/p/freetype-go/testdata/make-other-hinting-txts.sh new file mode 100755 index 000000000..afee131e8 --- /dev/null +++ b/Godeps/_workspace/src/code.google.com/p/freetype-go/testdata/make-other-hinting-txts.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# +# This script creates the optional x-*-hinting.txt files from fonts that are +# not checked in for copyright or file size reasons. +# +# Run it from this directory (testdata). +# +# It has only been tested on an Ubuntu 14.04 system. + +set -e + +: ${FONTDIR:=/usr/share/fonts/truetype} + +ln -sf $FONTDIR/droid/DroidSansJapanese.ttf x-droid-sans-japanese.ttf +ln -sf $FONTDIR/msttcorefonts/Arial_Bold.ttf x-arial-bold.ttf +ln -sf $FONTDIR/msttcorefonts/Times_New_Roman.ttf x-times-new-roman.ttf +ln -sf $FONTDIR/ttf-dejavu/DejaVuSans-Oblique.ttf x-deja-vu-sans-oblique.ttf + +${CC:=gcc} ../cmd/print-glyph-points/main.c $(pkg-config --cflags --libs freetype2) -o print-glyph-points + +# Uncomment these lines to also recreate the luxisr-*-hinting.txt files. +# ./print-glyph-points 12 luxisr.ttf sans_hinting > luxisr-12pt-sans-hinting.txt +# ./print-glyph-points 12 luxisr.ttf with_hinting > luxisr-12pt-with-hinting.txt + +./print-glyph-points 9 x-droid-sans-japanese.ttf sans_hinting > x-droid-sans-japanese-9pt-sans-hinting.txt +./print-glyph-points 9 x-droid-sans-japanese.ttf with_hinting > x-droid-sans-japanese-9pt-with-hinting.txt +./print-glyph-points 11 x-arial-bold.ttf sans_hinting > x-arial-bold-11pt-sans-hinting.txt +./print-glyph-points 11 x-arial-bold.ttf with_hinting > x-arial-bold-11pt-with-hinting.txt +./print-glyph-points 13 x-times-new-roman.ttf sans_hinting > x-times-new-roman-13pt-sans-hinting.txt +./print-glyph-points 13 x-times-new-roman.ttf with_hinting > x-times-new-roman-13pt-with-hinting.txt +./print-glyph-points 17 x-deja-vu-sans-oblique.ttf sans_hinting > x-deja-vu-sans-oblique-17pt-sans-hinting.txt +./print-glyph-points 17 x-deja-vu-sans-oblique.ttf with_hinting > x-deja-vu-sans-oblique-17pt-with-hinting.txt + +rm print-glyph-points -- cgit v1.2.3-1-g7c22