summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0db0014)
raw | patch | inline | side by side (parent: 0db0014)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 11 Dec 2006 02:40:10 +0000 (02:40 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 11 Dec 2006 02:40:10 +0000 (02:40 +0000) |
src/extension/internal/ps.cpp | patch | blob | history |
index 6392c33d8ba673d722a516a732ba052ff3601051..a5208cfeeb935992eee029a3992e31583d8ba01d 100644 (file)
#include <ft2build.h>
#include FT_FREETYPE_H
-#include <freetype/ftxf86.h>
+#include FT_XFREE86_H
#include <pango/pangoft2.h>
#include <string>
#include <iostream>
_bitmap(false)
{
//map font types
- _fontTypesMap["type1"] = FONT_TYPE1;
- _fontTypesMap["truetype"] = FONT_TRUETYPE;
+ _fontTypesMap["Type 1"] = FONT_TYPE1;
+ _fontTypesMap["TrueType"] = FONT_TRUETYPE;
//TODO: support other font types (cf. embed_font())
}
const FT_String* font_type = FT_Get_X11_Font_Format(font_face);
/**
- * Possible values of "font_type" variable, not supported (font types):
- * truetype, cff, t1cid, sfnt, bdf, pcf, pfr, winfonts (FNT/FON).
+ * Possible values of "font_type": Type 1, TrueType, etc.
+ * Embedding available only for Type 1 fonts so far.
*/
- //TODO: provide support for the font types above
+ //TODO: provide support for other font types (TrueType is a priority)
switch(_fontTypesMap[font_type])
{
case FONT_TYPE1: