Back to index

texmacs  1.0.7.15
free_type.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : free_type.hpp
00004 * DESCRIPTION: Interface with Free Type II
00005 * COPYRIGHT  : (C) 2003  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef FREE_TYPE_H
00013 #define FREE_TYPE_H
00014 #include "tree.hpp"
00015 
00016 bool ft_initialize ();
00017 bool ft_present ();
00018 
00019 #ifdef USE_FREETYPE
00020 #include <ft2build.h>
00021 #include FT_FREETYPE_H 
00022 
00023 extern FT_Library ft_library;
00024 
00025 extern FT_Error (*ft_new_face)       (FT_Library     library,
00026                                   const char*    filepathname,
00027                                   FT_Long        face_index,
00028                                   FT_Face*       aface);
00029 extern FT_Error (*ft_select_charmap) (FT_Face        face,
00030                                   FT_Encoding    encoding);
00031 extern FT_Error (*ft_set_char_size)  (FT_Face        face,
00032                                   FT_F26Dot6     char_width,
00033                                   FT_F26Dot6     char_height,
00034                                   FT_UInt        horz_resolution,
00035                                   FT_UInt        vert_resolution);
00036 extern FT_UInt  (*ft_get_char_index) (FT_Face        face,
00037                                   FT_ULong       charcode);
00038 extern FT_Error (*ft_load_glyph)     (FT_Face        face,
00039                                   FT_UInt        glyph_index,
00040                                   FT_Int         load_flags);
00041 extern FT_Error (*ft_render_glyph)   (FT_GlyphSlot   slot,
00042                                   FT_Render_Mode render_mode);
00043 
00044 #endif
00045 
00046 #endif // FREE_TYPE_H