/src/freetype/src/base/ftbase.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 69 lines · 26 code · 17 blank · 26 comment · 1 complexity · 167dca789d7e4f85e1f7dfc461a4738d MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ftbase.h */
  4. /* */
  5. /* The FreeType private functions used in base module (specification). */
  6. /* */
  7. /* Copyright 2008, 2010 by */
  8. /* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya. */
  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 __FTBASE_H__
  18. #define __FTBASE_H__
  19. #include <ft2build.h>
  20. #include FT_INTERNAL_OBJECTS_H
  21. FT_BEGIN_HEADER
  22. /* Assume the stream is sfnt-wrapped PS Type1 or sfnt-wrapped CID-keyed */
  23. /* font, and try to load a face specified by the face_index. */
  24. FT_LOCAL( FT_Error )
  25. open_face_PS_from_sfnt_stream( FT_Library library,
  26. FT_Stream stream,
  27. FT_Long face_index,
  28. FT_Int num_params,
  29. FT_Parameter *params,
  30. FT_Face *aface );
  31. /* Create a new FT_Face given a buffer and a driver name. */
  32. /* From ftmac.c. */
  33. FT_LOCAL( FT_Error )
  34. open_face_from_buffer( FT_Library library,
  35. FT_Byte* base,
  36. FT_ULong size,
  37. FT_Long face_index,
  38. const char* driver_name,
  39. FT_Face *aface );
  40. #if defined( FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK ) && \
  41. !defined( FT_MACINTOSH )
  42. /* Mac OS X/Darwin kernel often changes recommended method to access */
  43. /* the resource fork and older methods makes the kernel issue the */
  44. /* warning of deprecated method. To calm it down, the methods based */
  45. /* on Darwin VFS should be grouped and skip the rest methods after */
  46. /* the case the resource is opened but found to lack a font in it. */
  47. FT_LOCAL( FT_Bool )
  48. ft_raccess_rule_by_darwin_vfs( FT_Library library, FT_UInt rule_index );
  49. #endif
  50. FT_END_HEADER
  51. #endif /* __FTBASE_H__ */
  52. /* END */