Hacked Raven Input (Nina Wenhart, jonCates + jake elliot) remixes and transcodes raw data from various Media Art Archives, converting files into realtime audio video noise, building a nest for digital punk computer witches and crashing systems across a network connecting Linz/Chicago.

Friday, January 11, 2008

font #1

img2ttf, from Tsutsumi Hiroyuki
(http://www.bebits.com/app/4134#download)


img2ttf ver.0.03 2005.5.18


Function
create ttf(TrueTypeFont) from image-files


How to use
1. edit info-file. (Refer to following)
2. open Terminal
3. type "img2ttf [-b] [-r] [-a0|-a1|-a2|-a3] [-wh|-wf] info-file img-dir"


About command-options
-b without embedded-bitmap , output BeBitmapFont
-r reverse image(white/black)
-a0 if max_size<=16 , outline is faithfully generated to input.
-a1 if max_size<=16 , outline is faithfully generated to input.(corner is round)
-a2 outline is generated with old type algorithm
-a3 outline is generated with new type algorithm(default)
-wh all character is half-width
-wf all character is full-width


About info-file
refer to sample-file "test.inf"

line 1 filename(output ttf-file-name , not font-name)
line 2 vendor-name(4byte-ascii)
line3-10 strings for name-fields of ttf-file
Copyright notice,
Font Family name,
Font Subfamily name,
Unique font identifier,
Full font name,
Version string,
Postscript name for the font,
Trademark,


About img-dir and images
example
img-dir/
img-dir/16/ .....size=16dot
img-dir/16/0000.img .....error-character image
img-dir/16/0020.img .....' '(space) image
img-dir/16/0030.img .....'0'
img-dir/16/0031.img .....'1'
img-dir/32/ .....size=16dot
img-dir/32/0030.img .....'0'
img-dir/128/ .....size=128dot
img-dir/128/0031.img .....'1'
img-dir/128/0032.img .....'2'

point-size ... 8<=n<=256
image-file-name ... unicode + ".img"
image-type ... targa,jpeg,,,etc. (supported translator)
unicode0000-007f,ff61-ffdf ... half-width

created outline from largest image
embedded bitmap smaller than 33dot

input this example
output ttf is..
outline ... create from
16/0000.img
16/0020.img
32/0030.img
128/0031.img
128/0032.img
bitmap ... create from
16/0000.img
16/0020.img
16/0030.img
16/0031.img
32/0030.img


------------------------------------------------------------------
(c)Tsutsumi Hiroyuki
http://www.eonet.ne.jp/~hirotsu/

No comments: