/src/compiler/android-ndk/jni/freetype/src/base/ftxf86.c

http://ftk.googlecode.com/ · C · 40 lines · 12 code · 10 blank · 18 comment · 1 complexity · d07b5cc6db9abad195ad465a47949b02 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ftxf86.c */
  4. /* */
  5. /* FreeType utility file for X11 support (body). */
  6. /* */
  7. /* Copyright 2002, 2003, 2004 by */
  8. /* David Turner, Robert Wilhelm, and Werner Lemberg. */
  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. #include <ft2build.h>
  18. #include FT_XFREE86_H
  19. #include FT_INTERNAL_OBJECTS_H
  20. #include FT_SERVICE_XFREE86_NAME_H
  21. /* documentation is in ftxf86.h */
  22. FT_EXPORT_DEF( const char* )
  23. FT_Get_X11_Font_Format( FT_Face face )
  24. {
  25. const char* result = NULL;
  26. if ( face )
  27. FT_FACE_FIND_SERVICE( face, result, XF86_NAME );
  28. return result;
  29. }
  30. /* END */