bdfdrivr.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* bdfdrivr.h
  2. FreeType font driver for bdf fonts
  3. Copyright (C) 2001, 2002 by
  4. Francesco Zappa Nardelli
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in
  12. all copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. THE SOFTWARE.
  20. */
  21. #ifndef __BDFDRIVR_H__
  22. #define __BDFDRIVR_H__
  23. #include <ft2build.h>
  24. #include FT_INTERNAL_DRIVER_H
  25. #include "bdf.h"
  26. FT_BEGIN_HEADER
  27. typedef struct BDF_encoding_el_
  28. {
  29. FT_ULong enc;
  30. FT_Short glyph;
  31. } BDF_encoding_el;
  32. typedef struct BDF_FaceRec_
  33. {
  34. FT_FaceRec root;
  35. char* charset_encoding;
  36. char* charset_registry;
  37. bdf_font_t* bdffont;
  38. BDF_encoding_el* en_table;
  39. FT_CharMap charmap_handle;
  40. FT_CharMapRec charmap; /* a single charmap per face */
  41. } BDF_FaceRec, *BDF_Face;
  42. FT_EXPORT_VAR( const FT_Driver_ClassRec ) bdf_driver_class;
  43. FT_END_HEADER
  44. #endif /* __BDFDRIVR_H__ */
  45. /* END */