22 #ifndef GRAPHICS_FONTS_FREETYPE_H 23 #define GRAPHICS_FONTS_FREETYPE_H 27 #include "common/scummsys.h" 29 #include FT_FREETYPE_H 35 extern FT_Error Init_FreeType(FT_Library *alibrary);
36 extern FT_Error Init_FreeType_With_Mem(FT_Library *alibrary, FT_Memory *amem);
37 extern FT_Error Done_FreeType(FT_Library library);
38 extern FT_Error Done_FreeType_With_Mem(FT_Library library, FT_Memory mem);
39 extern FT_Error Load_Glyph(FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags);
40 extern FT_Error Get_Glyph(FT_GlyphSlot slot, FT_Glyph *aglyph);
41 extern FT_Error Glyph_Copy(FT_Glyph source, FT_Glyph *target);
42 extern FT_Error Glyph_To_Bitmap(FT_Glyph *the_glyph, FT_Render_Mode render_mode,
43 FT_Vector *origin, FT_Bool destroy);
44 extern void Done_Glyph(FT_Glyph glyph);
45 extern FT_Error Set_Pixel_Sizes(FT_Face face, FT_UInt pixel_width,
46 FT_UInt pixel_height);
47 extern FT_Error New_Face(FT_Library library,
const char *pathname,
48 FT_Long face_index, FT_Face *aface);
49 extern FT_Error New_Memory_Face(FT_Library library,
const FT_Byte *file_base,
50 FT_Long file_size, FT_Long face_index, FT_Face *aface);
51 extern FT_Error Done_Face(FT_Face face);
52 extern FT_UInt Get_Char_Index(FT_Face face, FT_ULong charcode);
53 extern FT_Error Get_Kerning(FT_Face face, FT_UInt left_glyph,
54 FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning);
Definition: formatinfo.h:28