From 41d45011c24740abfcaae9ecf0ea3f1906c6f29e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Mon, 13 Jul 2009 01:12:24 +0300
Subject: Replace internal freetype font handling with VDR's font facilities.

Skins that use fonts other than VDR's standard "Osd", "Fix", and "Sml"
need to be adapted to use font names as understood by VDR's
CreateFont() (Family:Style as of writing this) instead of filenames in
their font attributes' names, to use '@' instead of ':' as the
separator before sizes, and have fonts shipped with the skin installed
and configured in fontconfig.  Typically, install font files (if
necessary) to a dir somewhere, run fc-cache(1) on the dir, replace for
example font="SomeFont.ttf:22,85" with font="Some Font@22,85" or
font="SomeFontBold.ttf:22,85" with font="Some Font:Bold@22,85" in the
*.skin file.  Also, in case the shipped fonts are derivatives of some
existing ones, they may need to be properly renamed to something so
they will be used instead of the original if it happens to be
installed. (closes #36)
---
 README | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

(limited to 'README')

diff --git a/README b/README
index 25cb133..ed86e37 100644
--- a/README
+++ b/README
@@ -46,10 +46,6 @@ HINT: Although the manual of ImageMagick claims that the used library Magick++
 is part of the source distribution, some binary distributions may have to 
 install Magick++ separately.
 
-Some skins may use True Type Fonts, which requires the FreeType package to be
-installed. If you don't want to use FreeType font rendering, you may disable
-that in the Makefile, too.
-
 The Makefile uses pkg-config by default to find out the necessary compiler,
 preprocessor and linker flags and libraries for the above, so you'll need it
 and the *.pc files for the above packages properly installed as well.
@@ -101,10 +97,6 @@ it there.
 Where to put the fonts:
 -----------------------
 
-Font files (.ttf) can be placed either in the directory of the skin itself or 
-in a subfolder fonts inside the text2skin directory.
-
-Example:
-/video0/plugins/text2skin/fonts/arial.ttf
-/video0/plugins/text2skin/myskin/arial.ttf
-
+Font files (.ttf) must be installed so that fontconfig can find them, see the
+fontconfig documentation for more information (usually copy *.ttf to some dir,
+run fc-cache on that dir as root or the vdr user).
-- 
cgit v1.2.3