summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e71d958)
raw | patch | inline | side by side (parent: e71d958)
author | sgimenez <sgimenez@users.sourceforge.net> | |
Sat, 2 Dec 2006 13:33:58 +0000 (13:33 +0000) | ||
committer | sgimenez <sgimenez@users.sourceforge.net> | |
Sat, 2 Dec 2006 13:33:58 +0000 (13:33 +0000) |
but, the replacement "FT_Get_X11_Font_Format" is still a hack,
headers says:
"It should only be used by the FreeType 2 font backend of
the XFree86 font server."
headers says:
"It should only be used by the FreeType 2 font backend of
the XFree86 font server."
src/extension/internal/ps.cpp | patch | blob | history |
index 1301e888aaa26fd120df0681680d7f273238b09f..6392c33d8ba673d722a516a732ba052ff3601051 100644 (file)
#include <ft2build.h>
#include FT_FREETYPE_H
-#include <freetype/internal/ftobjs.h>
+#include <freetype/ftxf86.h>
#include <pango/pangoft2.h>
#include <string>
#include <iostream>
{
//check font type
FT_Face font_face = pango_ft2_font_get_face(font->pFont);
- const FT_String* font_type = FT_MODULE_CLASS(font_face->driver)->module_name;
+ const FT_String* font_type = FT_Get_X11_Font_Format(font_face);
g_return_val_if_fail (_fontTypesMap[font_type] == FONT_TYPE1, false);
//get font filename, stream to font file and size
FT_Stream font_stream = font_face->stream;
//Hinted at by a comment in libgnomeprint/fcpattern_to_gp_font_entry()
//Determining the font type in the "Pango way"
FT_Face font_face = pango_ft2_font_get_face(font->pFont);
- const FT_String* font_type = FT_MODULE_CLASS(font_face->driver)->module_name;
+ const FT_String* font_type = FT_Get_X11_Font_Format(font_face);
/**
* Possible values of "font_type" variable, not supported (font types):