comparison TOOLS/subfont-c/font.desc.tail @ 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 03d3ab9f6400
comparison
equal deleted inserted replaced
1469:22996ab2d78f 1470:2c7b0478db0c
1
2 ;
3 ; Mplayer subtitle font description file - HighreS ONE
4 ; font created by a'rpi & chass
5 ; .desc created by chass & atmosfear
6 ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 ;
8 ;
9 ; This file contains the data for Mplayer to build up the font
10 ; table from the bitmap files. These fonts are used for the OSD
11 ; (On Screen Display) and for the subtitles.
12 ;
13 ;
14 ; A few words for the novice user about the fonts:
15 ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
16 ;
17 ; Mplayer uses antialiased bitmap fonts, which look far better
18 ; then the TTF rendering used by other players. A letter consists
19 ; of two main parts: the Bitmap and the Alpha chanel. The bitmap
20 ; is what you see on the screen, and the Aplha chanel makes the
21 ; Font fade smoothly ito the background. And in this font we use
22 ; the alpha to get a smooth black outline of the letters, which
23 ; makes them visible even on white areas of the movie.
24 ;
25 ; Mplayer needs at least two seperate 8bit/pixel format bitmap
26 ; files and a .desc file to be able to use the font. One of the
27 ; files is the bitmap the other is the alpha. The .desc (like this
28 ; one) gives Mplayer the information needed to convert a bitmap
29 ; to characters. But the .desc allows to use more bitmap and alpha
30 ; files: this feature is useful when one wants to add local language
31 ; support for the subtitles.
32 ;
33 ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
34 ;
35 ; ABOUT THE .DESC
36 ;
37 ; [1],File layout: the file consists of several sections,
38 ; the sections are marked like [XXX] where XXX is the section
39 ; name. The three main sections:
40 ;
41 ; [info]: gives general information about the font, like the
42 ; version of the .desc, the author's name and general
43 ; rendering options like kerning.
44 ;
45 ; [files] & [characters] : they go togeather, they describe
46 ; the place of characters in the bitmap.
47 ; Up to 16 is allowed per .desc
48 ;
49 ; [2],The variables:
50 ;
51 ; [info]
52 ; name string name of the font, and misc information
53 ; desc int Version of this file
54 ; spacewidth int num of pixels for #32
55 ; charspace int the distance between chars
56 ; height int the distance between rows
57 ; [files]
58 ; alpha string name of alpha map file
59 ; bitmap string name of bitmap file
60 ; [character]
61 ; string int int the positon of a character
62 ;
63 ;
64 ; MPlayer can build up it's font table from up to 16*2 files (16 bitmap
65 ; and 16 alpha channels).
66 ;
67
68
69 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
70 ;informations about the font
71
72 ;[info]
73
74 ;the author and other stuff
75 ;name "HighreS ONE - created by A'rpi and cHaSS - pre-alpha version"
76
77 ;version number of the file (if greater than version MPlayer can
78 ;handle, then ignores the unknown variables)
79
80 ;descversion 1
81
82 ;the length of #32 in pixels
83
84 ;spacewidth 13
85
86 ;the distance between chars. the alpha renderer can handle
87 ;negative numbers too
88
89 ;charspace -3
90
91 ;height 26
92 ;height 35
93
94 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
95 ;file section
96
97 ;[files]
98
99 ;the name of the alpha file used for the next [characters]
100 ;section
101
102 ;alpha arpi_a.raw
103 ;alpha nfont_a.raw
104
105 ;the name of the bitmap file used for the next [characters]
106 ;section
107
108 ;bitmap arpi_b.raw
109 ;bitmap nfont_b.raw
110
111
112
113 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
114 ;the description of the characters:
115 ;each row specifies one character: first, the char (between " or ')
116 ;then the x-coordinate of the beginning and the end.
117
118
119 ;[characters]
120
121 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
122 [files]
123 alpha arpi_osd_a.raw
124 bitmap arpi_osd_b.raw
125
126 [characters]
127 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
128 ;Symbols for the OSD
129 ; range form 01 to 1F
130
131 ;play
132 0x01 0 36
133 ;pause
134 0x02 35 71
135 ;stop
136 0x03 70 106
137 ;rewind
138 0x04 116 152
139 ;fast forward
140 0x05 164 200
141 ;clock symbol for the OSD
142 0x06 209 245
143 ;contrast
144 0x07 256 292
145 ;stauration
146 0x08 305 342
147 ;volume
148 0x09 354 400
149 ;brightness
150 0x0A 407 442
151 ;Hue
152 0x0B 457 494
153
154 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
155 ;OSD progress bar characters
156 ;
157 [files]
158
159 alpha arpi_progress_a.raw
160 bitmap arpi_progress_b.raw
161
162 [characters]
163 ; [ character
164 0x10 4 21
165 ; | character
166 0x11 30 41
167 ; ] character
168 0x12 50 66
169 ; . char
170 0x13 74 85