The OpenD Programming Language

1 /**
2  * Font support for FreeType
3  *
4  * Requires $(LINK2 http://www.dsource.org/projects/derelict, DerelictFT)
5  *
6  * This module only contains basic documentation. For more information
7  * see $(LINK http://cairographics.org/manual/)
8  * 
9  * License:
10  * $(TABLE
11  *   $(TR $(TD cairoD wrapper/bindings)
12  *     $(TD $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)))
13  *   $(TR $(TD $(LINK2 http://cgit.freedesktop.org/cairo/tree/COPYING, _cairo))
14  *     $(TD $(LINK2 http://cgit.freedesktop.org/cairo/tree/COPYING-LGPL-2.1, LGPL 2.1) /
15  *     $(LINK2 http://cgit.freedesktop.org/cairo/plain/COPYING-MPL-1.1, MPL 1.1)))
16  * )
17  * Authors:
18  * $(TABLE
19  *   $(TR $(TD Johannes Pfau) $(TD cairoD))
20  *   $(TR $(TD $(LINK2 http://cairographics.org, _cairo team)) $(TD _cairo))
21  * )
22  */
23 /*
24  * Distributed under the Boost Software License, Version 1.0.
25  *    (See accompanying file LICENSE_1_0.txt or copy at
26  *          http://www.boost.org/LICENSE_1_0.txt)
27  */
28 module cairo.c.ft;
29 
30 import cairo.c.cairo;
31 
32 static if(CAIRO_HAS_FT_FONT)
33 {
34     import derelict.freetype.ft;
35 
36     extern(C):
37     /* Fontconfig/Freetype platform-specific font interface */
38     
39     /*#if CAIRO_HAS_FC_FONT
40     #include <fontconfig/fontconfig.h>
41     #endif*/
42 
43     ///
44     cairo_font_face_t* cairo_ft_font_face_create_for_ft_face (FT_Face face,
45                            int load_flags);
46     
47     ///
48     FT_Face cairo_ft_scaled_font_lock_face (cairo_scaled_font_t *scaled_font);
49     
50     ///
51     void cairo_ft_scaled_font_unlock_face (cairo_scaled_font_t *scaled_font);
52     
53     /*#if CAIRO_HAS_FC_FONT
54     
55     cairo_public cairo_font_face_t *
56     cairo_ft_font_face_create_for_pattern (FcPattern *pattern);
57     
58     cairo_public void
59     cairo_ft_font_options_substitute (const cairo_font_options_t *options,
60                       FcPattern                  *pattern);
61     
62     #endif*/
63 }