ftsynth.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /***************************************************************************/
  2. /* */
  3. /* ftsynth.h */
  4. /* */
  5. /* FreeType synthesizing code for emboldening and slanting */
  6. /* (specification). */
  7. /* */
  8. /* Copyright 2000-2001, 2003, 2006 by */
  9. /* David Turner, Robert Wilhelm, and Werner Lemberg. */
  10. /* */
  11. /* This file is part of the FreeType project, and may only be used, */
  12. /* modified, and distributed under the terms of the FreeType project */
  13. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  14. /* this file you indicate that you have read the license and */
  15. /* understand and accept it fully. */
  16. /* */
  17. /***************************************************************************/
  18. /*************************************************************************/
  19. /*************************************************************************/
  20. /*************************************************************************/
  21. /*************************************************************************/
  22. /*************************************************************************/
  23. /********* *********/
  24. /********* WARNING, THIS IS ALPHA CODE, THIS API *********/
  25. /********* IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE *********/
  26. /********* FREETYPE DEVELOPMENT TEAM *********/
  27. /********* *********/
  28. /*************************************************************************/
  29. /*************************************************************************/
  30. /*************************************************************************/
  31. /*************************************************************************/
  32. /*************************************************************************/
  33. #ifndef __FTSYNTH_H__
  34. #define __FTSYNTH_H__
  35. #include <ft2build.h>
  36. #include FT_FREETYPE_H
  37. #ifdef FREETYPE_H
  38. #error "freetype.h of FreeType 1 has been loaded!"
  39. #error "Please fix the directory search order for header files"
  40. #error "so that freetype.h of FreeType 2 is found first."
  41. #endif
  42. FT_BEGIN_HEADER
  43. /* Make sure slot owns slot->bitmap. */
  44. FT_EXPORT( FT_Error )
  45. FT_GlyphSlot_Own_Bitmap( FT_GlyphSlot slot );
  46. /* Do not use this function directly! Copy the code to */
  47. /* your application and modify it to suit your need. */
  48. FT_EXPORT( void )
  49. FT_GlyphSlot_Embolden( FT_GlyphSlot slot );
  50. FT_EXPORT( void )
  51. FT_GlyphSlot_Oblique( FT_GlyphSlot slot );
  52. /* */
  53. FT_END_HEADER
  54. #endif /* __FTSYNTH_H__ */
  55. /* END */