Commit | Line | Data |
---|---|---|
ab422c4d | 1 | Copyright (C) 2002-2013 Free Software Foundation, Inc. |
e88a2ed3 GM |
2 | See the end of the file for license conditions. |
3 | ||
4 | ||
5 | New font handling mechanism with font backend method | |
6 | ---------------------------------------------------- | |
7 | ||
e88a2ed3 GM |
8 | The 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 |
27 | So we already have codes for X and w32. For Mac it seems that we need |
28 | these files: | |
e88a2ed3 GM |
29 | atmfont.c -- font-driver on mac using ATM fonts, corresponding |
30 | to xfont.c | |
31 | As 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 | |
36 | But, as FreeType already supports BDF fonts, if FreeType and | |
37 | Fontconfig 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 |
41 | It may be interesting if Emacs supports a frame buffer directly and |
42 | has these font driver. | |
43 | ftfbfont.c -- font-driver on FB for FreeType fonts. | |
44 | bdffbfont.c -- font-driver on FB for BDF fonts. | |
45 | ||
46 | Note: The fontset related codes are not yet matured to work well with | |
47 | the font backend method. So, for instance, even if you start Emacs | |
48 | as something like this: | |
49 | % emacs -fn tahoma | |
50 | Non-ASCII Latin characters will not be displayed by the font "tahoma". | |
51 | In such a case, please try this: | |
52 | ||
53 | (set-fontset-font "fontset-default" 'latin '("tahoma" . "unicode-bmp")) | |
54 | ||
55 | \f | |
56 | This file is part of GNU Emacs. | |
57 | ||
9ad5de0c | 58 | GNU Emacs is free software: you can redistribute it and/or modify |
e88a2ed3 | 59 | it under the terms of the GNU General Public License as published by |
9ad5de0c GM |
60 | the Free Software Foundation, either version 3 of the License, or |
61 | (at your option) any later version. | |
e88a2ed3 GM |
62 | |
63 | GNU Emacs is distributed in the hope that it will be useful, | |
64 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
65 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
66 | GNU General Public License for more details. | |
67 | ||
68 | You should have received a copy of the GNU General Public License | |
9ad5de0c | 69 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |