/src/compiler/android-ndk/jni/freetype/src/autofit/afpic.h

http://ftk.googlecode.com/ · C++ Header · 64 lines · 27 code · 18 blank · 19 comment · 0 complexity · 30f7fbe62cce78ba65ad416b9b63f7c9 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* afpic.h */
  4. /* */
  5. /* The FreeType position independent code services for autofit module. */
  6. /* */
  7. /* Copyright 2009 by */
  8. /* Oran Agra and Mickey Gabel. */
  9. /* */
  10. /* This file is part of the FreeType project, and may only be used, */
  11. /* modified, and distributed under the terms of the FreeType project */
  12. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  13. /* this file you indicate that you have read the license and */
  14. /* understand and accept it fully. */
  15. /* */
  16. /***************************************************************************/
  17. #ifndef __AFPIC_H__
  18. #define __AFPIC_H__
  19. FT_BEGIN_HEADER
  20. #include FT_INTERNAL_PIC_H
  21. #ifndef FT_CONFIG_OPTION_PIC
  22. #define AF_SCRIPT_CLASSES_GET af_script_classes
  23. #define AF_AF_AUTOFITTER_SERVICE_GET af_autofitter_service
  24. #else /* FT_CONFIG_OPTION_PIC */
  25. #include "aftypes.h"
  26. /* increase these when you add new scripts, and update autofit_module_class_pic_init */
  27. #ifdef FT_OPTION_AUTOFIT2
  28. #define AF_SCRIPT_CLASSES_COUNT 6
  29. #else
  30. #define AF_SCRIPT_CLASSES_COUNT 5
  31. #endif
  32. #define AF_SCRIPT_CLASSES_REC_COUNT (AF_SCRIPT_CLASSES_COUNT-1)
  33. typedef struct AFModulePIC_
  34. {
  35. AF_ScriptClass af_script_classes[AF_SCRIPT_CLASSES_COUNT];
  36. AF_ScriptClassRec af_script_classes_rec[AF_SCRIPT_CLASSES_REC_COUNT];
  37. FT_AutoHinter_ServiceRec af_autofitter_service;
  38. } AFModulePIC;
  39. #define GET_PIC(lib) ((AFModulePIC*)((lib)->pic_container.autofit))
  40. #define AF_SCRIPT_CLASSES_GET (GET_PIC(FT_FACE_LIBRARY(globals->face))->af_script_classes)
  41. #define AF_AF_AUTOFITTER_SERVICE_GET (GET_PIC(library)->af_autofitter_service)
  42. #endif /* FT_CONFIG_OPTION_PIC */
  43. /* */
  44. FT_END_HEADER
  45. #endif /* __AFPIC_H__ */
  46. /* END */