/src/freetype/src/pcf/README

https://bitbucket.org/cabalistic/ogredeps/ · #! · 96 lines · 65 code · 31 blank · 0 comment · 0 complexity · 5c03efb0f6c3d1f47958369b065a4c08 MD5 · raw file

  1. FreeType font driver for PCF fonts
  2. Francesco Zappa Nardelli
  3. <francesco.zappa.nardelli@ens.fr>
  4. Introduction
  5. ************
  6. PCF (Portable Compiled Format) is a binary bitmap font format, largely used
  7. in X world. This code implements a PCF driver for the FreeType library.
  8. Glyph images are loaded into memory only on demand, thus leading to a small
  9. memory footprint.
  10. Information on the PCF font format can only be worked out from
  11. `pcfread.c', and `pcfwrite.c', to be found, for instance, in the XFree86
  12. (www.xfree86.org) source tree (xc/lib/font/bitmap/).
  13. Many good bitmap fonts in bdf format come with XFree86: they can be
  14. compiled into the pcf format using the `bdftopcf' utility.
  15. Supported hardware
  16. ******************
  17. The driver has been tested on linux/x86 and sunos5.5/sparc. In both
  18. cases the compiler was gcc. When back in Paris, I will test it also
  19. on linux/alpha.
  20. Encodings
  21. *********
  22. Use `FT_Get_BDF_Charset_ID' to access the encoding and registry.
  23. The driver always exports `ft_encoding_none' as face->charmap.encoding.
  24. FT_Get_Char_Index() behavior is unmodified, that is, it converts the ULong
  25. value given as argument into the corresponding glyph number.
  26. Known problems
  27. **************
  28. - dealing explicitly with encodings breaks the uniformity of freetype2
  29. api.
  30. - except for encodings properties, client applications have no
  31. visibility of the PCF_Face object. This means that applications
  32. cannot directly access font tables and are obliged to trust
  33. FreeType.
  34. - currently, glyph names and ink_metrics are ignored.
  35. I plan to give full visibility of the PCF_Face object in the next
  36. release of the driver, thus implementing also glyph names and
  37. ink_metrics.
  38. - height is defined as (ascent - descent). Is this correct?
  39. - if unable to read size information from the font, PCF_Init_Face
  40. sets available_size->width and available_size->height to 12.
  41. - too many english grammar errors in the readme file :-(
  42. License
  43. *******
  44. Copyright (C) 2000 by Francesco Zappa Nardelli
  45. Permission is hereby granted, free of charge, to any person obtaining
  46. a copy of this software and associated documentation files (the
  47. "Software"), to deal in the Software without restriction, including
  48. without limitation the rights to use, copy, modify, merge, publish,
  49. distribute, sublicense, and/or sell copies of the Software, and to
  50. permit persons to whom the Software is furnished to do so, subject to
  51. the following conditions:
  52. The above copyright notice and this permission notice shall be
  53. included in all copies or substantial portions of the Software.
  54. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  55. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  56. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  57. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  58. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  59. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  60. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  61. Credits
  62. *******
  63. Keith Packard wrote the pcf driver found in XFree86. His work is at
  64. the same time the specification and the sample implementation of the
  65. PCF format. Undoubtedly, this driver is inspired from his work.