From 08c8b0135ae069dcfd7b652d18c1cae87021bf73 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 11 Dec 2006 02:40:10 +0000 Subject: [PATCH] last fixes from patch 1219308 --- src/extension/internal/ps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index 6392c33d8..a5208cfee 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -64,7 +64,7 @@ #include #include FT_FREETYPE_H -#include +#include FT_XFREE86_H #include #include #include @@ -81,8 +81,8 @@ PrintPS::PrintPS() : _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()) } @@ -1153,10 +1153,10 @@ bool PrintPS::embed_font(SVGOStringStream &os, font_instance* 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: -- 2.30.2