Tools
=====

fontgen can be found in https://github.com/Grumbel/fontgen
 % cd external
 % git clone git://github.com/Grumbel/fontgen.git
 % cd fontgen
 % scons
 % cd ../data/images/fonts
 % ln -s ../../../external/fontgen/fontgen .
tinygettext can be found at http://tinygettext.googlecode.com in the test/ directory or at external/tinygettext/test
 % cd external/tinygettext
 % scons
 % cd ../../data/images/fonts
 % ln -s ../../../external/tinygettext/test/tinygettext_test tinygettext 
/usr/share/fonts/truetype/arphic/ukai.ttc
 % sudo apt-get install ttf-arphic-ukai

characters.txt
==============

List of characters in the base ttf font, generated via:

 % ./fontgen listchars ExpletiveDeletedEnhanced.ttf > characters.txt


characters-cjk.txt
==================

List of needed additional CJK characters not provided by the base
font, generated by
  
 % ./tinygettext list-msgstrs   ~/projects/pingus/svn/trunk/pingus/data/po/zh_CN.po | ./buildset.py > out
 % ./substractchars.py characters.txt out > characters-cs.txt
 % ./tinygettext list-msgstrs   ~/projects/pingus/svn/trunk/pingus/data/po/zh_TW.po | ./buildset.py > out
 % ./substractchars.py characters.txt out > characters-ct.txt
 % ./tinygettext list-msgstrs   ~/projects/pingus/svn/trunk/pingus/data/po/ja.po | ./buildset.py > out
 % ./substractchars.py characters.txt out > characters-ja.txt
 % cat characters-cs.txt characters-ct.txt characters-ja.txt | sort | uniq > characters-cjk.txt
 % rm characters-cs.txt characters-ct.txt characters-ja.txt


verdana11.font
==============

Simple screen font for use in the editor.
 
 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 11 0 256 5000 "$(cat characters-cjk.txt)"


chalk-16px.font
===============

 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 16 0 512 5000 "$(cat characters-cjk.txt)"


chalk-20px.font
===============

 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 20 0 512 5000 "$(cat characters-cjk.txt)"


chalk-40px.font
===============

 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 40 0 1024 5000 "$(cat characters-cjk.txt)"


pingus-small-20px.font
======================

A green font with a 1px black border around it.

 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 20 1 512 5000 "$(cat characters-cjk.txt)"


TTF Fonts
=========

The Pingus main font is based on "ExpletiveDeletedEnhanced.ttf"

The CJK font is based on /usr/share/fonts/truetype/arphic/ukai.ttc


characters-ru.txt
==================

List of needed additional ru characters not provided by the base font, generated by

 % ./tinygettext list-msgstrs ../../po/ru.po | ./buildset.py > out
 % ./substractchars.py characters.txt out > characters-ru.txt


chalk-40px.font
===============

 % ./fontgen  generate /usr/share/fonts/truetype/arphic/ukai.ttc 40 0 1024 5000 "$(cat characters-ru.txt)"
 % mv /tmp/out.pgm chalk-ru-40px.pgm
 % make chalk-ru-40px.png with GIMP add alpha, select white, del, revert selection, del, fill white, blur, save as png
 % mv /tmp/out.font chalk-ru-40px.font
 add image filename and glyphs section to chalk-ru-40px.font; set (advance 40) to (advance 22)


# EOF #
