blob: a4bf767dfa25242f4806d6b6863379c847e003ac [file] [log] [blame]
Werner Lemberg5bbb4942002-05-30 19:22:14 +00001/***************************************************************************/
2/* */
3/* ftxf86.c */
4/* */
5/* FreeType utility file for X11 support (body). */
6/* */
Werner Lembergece8b202004-12-13 23:16:59 +00007/* Copyright 2002, 2003, 2004 by */
Werner Lemberg5bbb4942002-05-30 19:22:14 +00008/* 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 Turner2a4fa132002-05-28 22:07:49 +000019#include <ft2build.h>
20#include FT_XFREE86_H
21#include FT_INTERNAL_OBJECTS_H
David Turnerc313c502003-09-11 19:51:54 +000022#include FT_SERVICE_XFREE86_NAME_H
David Turner2a4fa132002-05-28 22:07:49 +000023
Werner Lembergece8b202004-12-13 23:16:59 +000024
25 /* documentation is in ftxf86.h */
26
David Turner2a4fa132002-05-28 22:07:49 +000027 FT_EXPORT_DEF( const char* )
Werner Lemberg5bbb4942002-05-30 19:22:14 +000028 FT_Get_X11_Font_Format( FT_Face face )
David Turner2a4fa132002-05-28 22:07:49 +000029 {
David Turner2a4fa132002-05-28 22:07:49 +000030 const char* result = NULL;
31
Werner Lemberg46333a12003-09-17 19:20:02 +000032
David Turnerc313c502003-09-11 19:51:54 +000033 if ( face )
David Turnerb72d8a82003-09-29 20:33:37 +000034 FT_FACE_FIND_SERVICE( face, result, XF86_NAME );
David Turner2a4fa132002-05-28 22:07:49 +000035
36 return result;
37 }
Werner Lemberg5bbb4942002-05-30 19:22:14 +000038
39
40/* END */