; ; Mplayer subtitle font description file - HighreS ONE ; font created by a'rpi & chass ; .desc created by chass ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ; ; ; This file contains the data for Mplayer to build up the font ; table from the bitmap files. These fonts are used for the OSD ; (On Screen Display) and for the subtitles. ; ; ; A few words for the novice user about the fonts: ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ; ; Mplayer uses antialiased bitmap fonts, which look far better ; then the TTF rendering used by other players. A letter consists ; of two main parts: the Bitmap and the Alpha chanel. The bitmap ; is what you see on the screen, and the Aplha chanel makes the ; Font fade smoothly ito the background. And in this font we use ; the alpha to get a smooth black outline of the letters, which ; makes them visible even on white areas of the movie. ; ; Mplayer needs at least two seperate 8bit/pixel format bitmap ; files and a .desc file to be able to use the font. One of the ; files is the bitmap the other is the alpha. The .desc (like this ; one) gives Mplayer the information needed to convert a bitmap ; to characters. But the .desc allows to use more bitmap and alpha ; files: this feature is useful when one wants to add local language ; support for the subtitles. ; ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ; ; ABOUT THE .DESC ; ; [1],File layout: the file consists of several sections, ; the sections are marked like [XXX] where XXX is the section ; name. The three main sections: ; ; [info]: gives general information about the font, like the ; version of the .desc, the author's name and general ; rendering options like kerning. ; ; [files] & [characters] : they go togeather, they describe ; the place of characters in the bitmap. ; Up to 16 is allowed per .desc ; ; [2],The variables: ; ; [info] ; name string name of the font, and misc information ; desc int Version of this file ; spacewidth int num of pixels for #32 ; charspace int the distance between chars ; height int the distance between rows ; [files] ; alpha string name of alpha map file ; bitmap string name of bitmap file ; [character] ; string int int the positon of a character ; ; ; MPlayer can build up it's font table from up to 16*2 files (16 bitmap ; and 16 alpha channels). ; ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ;informations about the font ;Bulgarian font to display subtitles [info] ;the author and other stuff name "Paul Kane paul@groovygraphics.com (Modified for koi8-r by Nick Kurshev nickols_k@mail.ru)" ;version number of the file (if greater than version MPlayer can ;handle, then ignores the unknown variables) descversion 1 ;the length of #32 in pixels spacewidth 13 ;the distance between chars. the alpha renderer can handle ;negative numbers too charspace -2 height 26 ;height 35 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ;file section [files] ;the name of the alpha file used for the next [characters] ;section ;alpha bgfont_a.raw alpha bgfont_a.raw ;the name of the bitmap file used for the next [characters] ;section ;bitmap bgfont_b.raw bitmap bgfont_b.raw ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ;the description of the characters: ;each row specifies one character: first, the char (between " or ') ;then the x-coordinate of the beginning and the end. [characters] "A" 3 21 "B" 26 42 "C" 47 64 "D" 70 87 "E" 92 107 "F" 113 128 "G" 133 152 "H" 158 174 "I" 180 186 "J" 192 204 "K" 210 227 "L" 232 245 "M" 250 269 "N" 275 292 "O" 297 316 "P" 321 337 "Q" 342 361 "R" 366 383 "S" 388 404 "T" 409 426 "U" 430 447 "V" 451 469 "W" 473 497 "X" 501 516 "Y" 521 539 "Z" 542 559 "a" 563 577 "b" 582 597 "c" 601 614 "d" 618 632 "e" 637 652 "f" 656 666 "g" 669 683 "h" 688 702 "i" 707 713 "j" 716 724 "k" 730 743 "l" 748 754 "m" 759 779 "n" 784 797 "o" 802 817 "p" 822 836 "q" 840 854 "r" 860 869 "s" 873 886 "t" 890 899 "u" 904 917 "v" 922 935 "w" 939 958 "x" 962 975 "y" 979 993 "z" 997 1011 "1" 1016 1026 "2" 1034 1047 "3" 1053 1066 "4" 1071 1085 "5" 1091 1104 "6" 1109 1123 "7" 1128 1142 "8" 1147 1160 "9" 1166 1180 "0" 1185 1198 "'" 1203 1209 '"' 1214 1224 "+" 1229 1243 "!" 1230 1237 "?" 1241 1255 "%" 1260 1280 "/" 1285 1295 "=" 1299 1313 "(" 1318 1327 ")" 1332 1341 "," 1346 1355 ";" 1361 1366 ":" 1372 1379 "." 1384 1391 "-" 1396 1406 "<" 1431 1445 ">" 1450 1464 "#" 1468 1484 "&" 1488 1505 "@" 1490 1513 "{" 1518 1530 "}" 1532 1542 "[" 1546 1555 "]" 1559 1568 "$" 1585 1598 "*" 1603 1614 ;begin Russian (koi8-r) cyrillic characters ;---------------------------------------------------------------------- ;This set lacks 6 characters from Russian set - '³','£','ù','Ù','ü','Ü' ;(Maybe Bulgarian language doesn't contain them?) ;---------------------------------------------------------------------- "á" 3 21 "â" 3210 3229 "÷" 26 42 "ç" 3231 3245 "ä" 3248 3267 "å" 92 107 "ö" 3268 3294 "ú" 3296 3313 "é" 3316 3334 "ê" 3338 3356 "ë" 210 227 "ì" 3358 3376 "í" 250 269 "î" 158 174 "ï" 297 316 "ð" 3380 3398 "ò" 321 337 "ó" 47 64 "ô" 409 426 "õ" 3117 3137 "æ" 3402 3422 "è" 501 516 "ã" 3425 3443 "þ" 3447 3464 "û" 3468 3491 "ý" 3494 3518 "ÿ" 3520 3541 "ø" 3545 3563 "à" 3565 3591 "ñ" 3594 3611 "Á" 563 577 "Â" 3615 3631 "×" 3139 3154 "Ç" 3634 3646 "Ä" 3647 3664 "Å" 637 652 "Ö" 3665 3686 "Ú" 3687 3701 "É" 3704 3719 "Ê" 3722 3737 "Ë" 730 743 "Ì" 3740 3756 "Í" 3156 3175 "Î" 3178 3193 "Ï" 802 817 "Ð" 3760 3774 "Ò" 822 836 "Ó" 601 614 "Ô" 3195 3210 "Õ" 979 993 "Æ" 3777 3800 "È" 962 975 "Ã" 3802 3819 "Þ" 3820 3835 "Û" 3838 3859 "Ý" 3862 3884 "ß" 3885 3903 "Ø" 3907 3922 "À" 3924 3944 "Ñ" 3945 3961 [files] alpha arpi_osd_a.raw bitmap arpi_osd_b.raw [characters] ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ;Symbols for the OSD ; range form 01 to 1F ;play 0x01 0 36 ;pause 0x02 35 71 ;stop 0x03 70 106 ;rewind 0x04 116 152 ;fast forward 0x05 164 200 ;clock symbol for the OSD 0x06 209 245 ;contrast 0x07 256 292 ;stauration 0x08 305 342 ;volume 0x09 354 400 ;brightness 0x0A 407 442 ;Hue 0x0B 457 494 ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ;OSD progress bar characters ; [files] alpha arpi_progress_a.raw bitmap arpi_progress_b.raw [characters] ; [ character 0x10 4 21 ; | character 0x11 30 41 ; ] character 0x12 50 66 ; . char 0x13 74 85