Werner Lemberg | 5bbb494 | 2002-05-30 19:22:14 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* ftxf86.c */ |
| 4 | /* */ |
| 5 | /* FreeType utility file for X11 support (body). */ |
| 6 | /* */ |
Werner Lemberg | ece8b20 | 2004-12-13 23:16:59 +0000 | [diff] [blame] | 7 | /* Copyright 2002, 2003, 2004 by */ |
Werner Lemberg | 5bbb494 | 2002-05-30 19:22:14 +0000 | [diff] [blame] | 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 | |
| 18 | |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 19 | #include <ft2build.h> |
| 20 | #include FT_XFREE86_H |
| 21 | #include FT_INTERNAL_OBJECTS_H |
David Turner | c313c50 | 2003-09-11 19:51:54 +0000 | [diff] [blame] | 22 | #include FT_SERVICE_XFREE86_NAME_H |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 23 | |
Werner Lemberg | ece8b20 | 2004-12-13 23:16:59 +0000 | [diff] [blame] | 24 | |
| 25 | /* documentation is in ftxf86.h */ |
| 26 | |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 27 | FT_EXPORT_DEF( const char* ) |
Werner Lemberg | 5bbb494 | 2002-05-30 19:22:14 +0000 | [diff] [blame] | 28 | FT_Get_X11_Font_Format( FT_Face face ) |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 29 | { |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 30 | const char* result = NULL; |
| 31 | |
Werner Lemberg | 46333a1 | 2003-09-17 19:20:02 +0000 | [diff] [blame] | 32 | |
David Turner | c313c50 | 2003-09-11 19:51:54 +0000 | [diff] [blame] | 33 | if ( face ) |
David Turner | b72d8a8 | 2003-09-29 20:33:37 +0000 | [diff] [blame] | 34 | FT_FACE_FIND_SERVICE( face, result, XF86_NAME ); |
David Turner | 2a4fa13 | 2002-05-28 22:07:49 +0000 | [diff] [blame] | 35 | |
| 36 | return result; |
| 37 | } |
Werner Lemberg | 5bbb494 | 2002-05-30 19:22:14 +0000 | [diff] [blame] | 38 | |
| 39 | |
| 40 | /* END */ |