/src/freetype/src/base/ftwinfnt.c

https://bitbucket.org/cabalistic/ogredeps/ · C · 51 lines · 21 code · 12 blank · 18 comment · 4 complexity · 62d08260b480d0a4b462f2f3d1059435 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ftwinfnt.c */
  4. /* */
  5. /* FreeType API for accessing Windows FNT specific info (body). */
  6. /* */
  7. /* Copyright 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_WINFONTS_H
  19. #include FT_INTERNAL_OBJECTS_H
  20. #include FT_SERVICE_WINFNT_H
  21. /* documentation is in ftwinfnt.h */
  22. FT_EXPORT_DEF( FT_Error )
  23. FT_Get_WinFNT_Header( FT_Face face,
  24. FT_WinFNT_HeaderRec *header )
  25. {
  26. FT_Service_WinFnt service;
  27. FT_Error error;
  28. error = FT_Err_Invalid_Argument;
  29. if ( face != NULL )
  30. {
  31. FT_FACE_LOOKUP_SERVICE( face, service, WINFNT );
  32. if ( service != NULL )
  33. {
  34. error = service->get_header( face, header );
  35. }
  36. }
  37. return error;
  38. }
  39. /* END */