comparison TOOLS/subfont-c/README @ 1470:2c7b0478db0c

mplayer font-generator using FreeType 2.x by Artur Zaprzala <zybi@fanthom.irc.pl>
author arpi
date Thu, 09 Aug 2001 17:28:06 +0000
parents
children 842c29861e25
comparison
equal deleted inserted replaced
1469:22996ab2d78f 1470:2c7b0478db0c
1 About:
2 ~~~~~~
3 `subfont' program renders antialiased fonts for mplayer using freetype library.
4 Should work with TrueType, Type1 and any other font supported by libfreetype.
5
6 Goals:
7 - internationalization: supports any 8 bit encoding (uses iconv).
8 - nice look: creates glyph `shadows' using algorithm derived from gaussian blur (slow!).
9
10
11 Note:
12 ~~~~~
13 Starting x position of each char and the bitmap width is aligned to multiple of 8
14 (required for under-development MMX renderer).
15
16
17 Usage:
18 ~~~~~~
19 Usage: subfont encoding ppem font [alphaFactor [minAlpha [radius]]]
20 Program creates 3 files: font.desc, <encoding>-a.raw, <encoding>-b.raw.
21 You should append font.desc.tail (desc for OSD characters by a'rpi & chass) to font.desc,
22 and copy font.desc and all *.raw files to ~/.mplayer/font/ directory.
23
24 encoding must be 8 bit encoding, like iso-8859-2.
25 To list encodings available on your system use iconv -l.
26 ppem Font size in pixels (e.g. 24).
27 font Font file path. Any format supported by freetype library (*.ttf, *.pf?, *).
28 alphaFactor Alpha map scaling factor (default is 1.0), float.
29 minAlpha Alpha map minimum value (default is 1.0, max is 255), float.
30 radius Alpha map blur radius (default is 6 pixels), integer.
31
32
33 Example:
34 ~~~~~~~~
35 make
36 ./subfont iso-8859-2 20 verdana.ttf
37 cat font.desc.tail >> font.desc
38 cp font.desc *.raw ~/.mplayer/font/
39
40
41 Author:
42 ~~~~~~~
43 Artur Zaprzala <zybi@fanthom.irc.pl>