font-backend 2.8 KB

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