Merge from emacs-24; up to 2014-06-02T14:17:07Z!michael.albinus@gmx.de
[bpt/emacs.git] / admin / notes / font-backend
CommitLineData
ba318903 1Copyright (C) 2002-2014 Free Software Foundation, Inc.
e88a2ed3
GM
2See the end of the file for license conditions.
3
4
5New font handling mechanism with font backend method
6----------------------------------------------------
7
e88a2ed3
GM
8The new files are:
9 font.h -- header providing font-backend related structures
10 (most important ones are "struct font" and "struct
11 font_driver"), macros, and etc.
12 font.c -- main font handling code.
13 xfont.c -- font-driver on X for X core fonts.
14 ftfont.c -- generic font-driver for FreeType fonts providing
15 device-independent methods of struct font_driver.
16 xftfont.c -- font-driver on X using Xft for FreeType fonts
17 utilizing methods provided by ftfont.c.
18 ftxfont.c -- font-driver on X directly using FreeType fonts
19 utilizing methods provided by ftfont.c.
20 w32font.c -- font driver on w32 using Windows native fonts,
21 corresponding to xfont.c
42a835e5
JR
22 w32uniscribe.c -- font driver on w32, using the uniscribe API
23 to provide complex script support for opentype fonts on
24 Windows 2000 and later, or earlier versions of Windows
25 with uniscribe installed as an add-on.
e88a2ed3 26
42a835e5
JR
27So we already have codes for X and w32. For Mac it seems that we need
28these files:
e88a2ed3
GM
29 atmfont.c -- font-driver on mac using ATM fonts, corresponding
30 to xfont.c
31As BDF fonts are currently used on w32, we may also implement these:
32 bdffont.c -- generic font-driver for BDF fonts, corresponding to
33 ftfont.c
34 bdfw32font.c -- font-driver on w32 using BDF fonts,
35 corresponding to ftxfont.c
36But, as FreeType already supports BDF fonts, if FreeType and
37Fontconfig are also available on w32, what we need may be:
38 ftw32font.c -- font-driver on w32 directly using FreeType fonts
39 utilizing methods provided by ftfont.c.
40
e88a2ed3
GM
41It may be interesting if Emacs supports a frame buffer directly and
42has these font driver.
43 ftfbfont.c -- font-driver on FB for FreeType fonts.
44 bdffbfont.c -- font-driver on FB for BDF fonts.
45
46Note: The fontset related codes are not yet matured to work well with
47the font backend method. So, for instance, even if you start Emacs
48as something like this:
49 % emacs -fn tahoma
50Non-ASCII Latin characters will not be displayed by the font "tahoma".
51In such a case, please try this:
52
53(set-fontset-font "fontset-default" 'latin '("tahoma" . "unicode-bmp"))
54
55\f
56This file is part of GNU Emacs.
57
9ad5de0c 58GNU Emacs is free software: you can redistribute it and/or modify
e88a2ed3 59it under the terms of the GNU General Public License as published by
9ad5de0c
GM
60the Free Software Foundation, either version 3 of the License, or
61(at your option) any later version.
e88a2ed3
GM
62
63GNU Emacs is distributed in the hope that it will be useful,
64but WITHOUT ANY WARRANTY; without even the implied warranty of
65MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
66GNU General Public License for more details.
67
68You should have received a copy of the GNU General Public License
9ad5de0c 69along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.