From 76b4bde43bb287a9b4cbfe92b4af5e1dd40ee311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 16 Feb 2004 17:05:56 +0000 Subject: Add docs about xine fonts waiting on xine-docs. CVS patchset: 6164 CVS date: 2004/02/16 17:05:56 --- ChangeLog | 1 + doc/faq/faq.sgml | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ebdcc7f6..1758aa594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,7 @@ xine-lib (1-rc4) * new, safer method for on-the-fly rewiring of post plugins * add iso-8859-9 and iso-8859-15 codepages into xine fonts * work around freezing with arts on BSD + * documentation about xine fonts xine-lib (1-rc3a) * new subtitle formats: jacobsub, subviewer 2.0, subrip 0.9 diff --git a/doc/faq/faq.sgml b/doc/faq/faq.sgml index 9817d02e7..d3e8f6c40 100644 --- a/doc/faq/faq.sgml +++ b/doc/faq/faq.sgml @@ -1822,6 +1822,106 @@ + + Which kinds of subtitle fonts xine uses and how to use them? + + xine can use two kinds of the fonts: + + + + TTF fonts + + + If xine is compiled with freetype library xine recognises and uses TTF + fonts directly. + + + + + xine fonts + + + This is the xine native format. It's better because in the font + generator utility is implemented more features than in the + "on the fly" TTF renderer. + + + + + + Font for external subtitles is selected via config option + 'misc.spu_font'. You can specify xine font name ('sans', 'serif', ...) + or file name of TTF font. The fonts are searched in the directories + $prefix/share/xine/libxine1/fonts and + ~/.xine/fonts. TTF fonts are searched also in the + current directory. + + + + + How to create own xine subtitle fonts? + + xine native subtitle fonts can be generated from TTF fonts with the + utility xine-fontconv. It isn't compiled and installed by default but + you can make it manually. You'll need freetype and zlib packages and + their versions for development: + + + + Get the source of xine-fontconv utility from xine-lib sources. + + + + + Compile it: + gcc xine-fontconv.c -o xine-fontconv `freetype-config --cflags --libs` -lz + + + + You'll need some TTF font for generating. Characters in this font should + cover all codepages you want support else you'll have missing characters. + + + Syntax is: + ./xine-fontconf font.ttf font_name [encoding1 [encoding2 [...]]] + + + For example default font sans was generated with + following command: + ./xine-fontconv Aril_Bold.ttf sans iso-8859-1 iso-8859-2 iso-8859-5 \ + iso-8859-9 iso-8859-15 cp1250 cp1251 + + + There are displayed messages about missing characters on the screen + during generating. It's OK if the missing characters are U+007f..U+009F. + These characters come from iso-8859-1 and they aren't displayable. + + + + + Encoding of external subtitles is bad. What is wrong? + + Default expected encoding of the external subtitles is iso-8859-1. You + need set appropriate encoding in the config option + 'misc.spu_src_encoding'. Note you need also the font which contains all + characters from given encoding. + + + Default font sans and fonts + serif and mono cover + encodings: + + iso-8859-1 + iso-8859-2 + iso-8859-5 + iso-8859-9 + iso-8859-15 + windows-1250 + windows-1251 + + + + -- cgit v1.2.3