summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 12a42c8)
raw | patch | inline | side by side (parent: 12a42c8)
author | Jon A. Cruz <jon@joncruz.org> | |
Sat, 17 Apr 2010 23:07:58 +0000 (16:07 -0700) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Sat, 17 Apr 2010 23:07:58 +0000 (16:07 -0700) |
src/libnrtype/FontFactory.cpp | patch | blob | history | |
src/libnrtype/FontInstance.cpp | patch | blob | history | |
src/libnrtype/Layout-TNG-Output.cpp | patch | blob | history |
index 83b9bf9d19c5b3232df4c45824981a07a0ed27a8..067254b9e898e17e31c2f986cb461eea16206420 100644 (file)
#include "libnrtype/font-instance.h"
#include "util/unordered-containers.h"
+#if !PANGO_VERSION_CHECK(1,24,0)
+#define PANGO_WEIGHT_THIN static_cast<PangoWeight>(100)
+#define PANGO_WEIGHT_BOOK static_cast<PangoWeight>(380)
+#define PANGO_WEIGHT_MEDIUM static_cast<PangoWeight>(500)
+#define PANGO_WEIGHT_ULTRAHEAVY static_cast<PangoWeight>(1000)
+#endif
+
typedef INK_UNORDERED_MAP<PangoFontDescription*, font_instance*, font_descr_hash, font_descr_equal> FaceMapType;
// need to avoid using the size field
index 1b02ace23aa2cd0553fda9d330aa04b77d3dd76d..7b16ae9b29f51f9cd3e678bbac5255be3de2875a 100644 (file)
#include "livarot/Path.h"
#include "util/unordered-containers.h"
+#if !PANGO_VERSION_CHECK(1,24,0)
+#define PANGO_WEIGHT_THIN static_cast<PangoWeight>(100)
+#define PANGO_WEIGHT_BOOK static_cast<PangoWeight>(380)
+#define PANGO_WEIGHT_MEDIUM static_cast<PangoWeight>(500)
+#define PANGO_WEIGHT_ULTRAHEAVY static_cast<PangoWeight>(1000)
+#endif
+
struct font_style_hash : public std::unary_function<font_style, size_t> {
size_t operator()(font_style const &x) const;
index 0d2b7647d9bb1c73b537287d59b82257a357af75..f34b93d6efaad7da92f85e0ae65c96d3d2fdcd8f 100644 (file)
#include "display/curve.h"
#include <2geom/pathvector.h>
+#if !PANGO_VERSION_CHECK(1,24,0)
+#define PANGO_WEIGHT_THIN static_cast<PangoWeight>(100)
+#define PANGO_WEIGHT_BOOK static_cast<PangoWeight>(380)
+#define PANGO_WEIGHT_MEDIUM static_cast<PangoWeight>(500)
+#define PANGO_WEIGHT_ULTRAHEAVY static_cast<PangoWeight>(1000)
+#endif
+
namespace Inkscape {
namespace Extension {
namespace Internal {