#!/bin/bash # Copyright (C) 2012, Aravinda VK # http://aravindavk.in # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . rm -fr hb_pango mkdir -p hb_pango mkdir -p hb_pango/pango mkdir -p hb_pango/hb touch hb_pango/index.html echo '' >> hb_pango/index.html echo "Harfbuzz and Pango rendering test" >> hb_pango/index.html echo "" >> hb_pango/index.html number=1 # read characters in inputfile while read ALINE do hb-view ~/.fonts/Gubbi.ttf "$ALINE" --font-size=30 --output-file=hb_pango/hb/$number.png pango-view -q --font="Gubbi 20" --text="$ALINE" --output=hb_pango/pango/$number.png echo "

TEXT : $ALINE
" >> hb_pango/index.html echo "HB :

" >> hb_pango/index.html echo "PANGO:



" >> hb_pango/index.html number=$((number + 1)) done < test_cases.txt echo "" >> hb_pango/index.html