summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-10-19 01:26:50 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-10-19 01:26:50 +0000
commit4c77f246c1e4e9c275d315a4b9217267d8d5265d (patch)
tree203d2d4d5c127c9d2677606fc162001900666aa1 /src/libnrtype
parentImproving speed (diff)
parentReplace deprecated call to pango_win32_get_context (diff)
downloadinkscape-4c77f246c1e4e9c275d315a4b9217267d8d5265d.tar.gz
inkscape-4c77f246c1e4e9c275d315a4b9217267d8d5265d.zip
Merge remote-tracking branch 'origin/master' into SymbolsSearch
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp
index b2baeb2f0..bf4cbc56f 100644
--- a/src/libnrtype/FontFactory.cpp
+++ b/src/libnrtype/FontFactory.cpp
@@ -89,26 +89,20 @@ font_factory::font_factory(void) :
nbEnt(0), // Note: this "ents" cache only keeps fonts from being unreffed, does not speed up access
maxEnt(32),
ents(static_cast<font_entry*>(g_malloc(maxEnt*sizeof(font_entry)))),
-
#ifdef USE_PANGO_WIN32
fontServer(pango_win32_font_map_for_display()),
- fontContext(pango_win32_get_context()),
pangoFontCache(pango_win32_font_map_get_font_cache(fontServer)),
hScreenDC(pango_win32_get_dc()),
#else
fontServer(pango_ft2_font_map_new()),
- fontContext(0),
#endif
+ fontContext(pango_font_map_create_context(fontServer)),
fontSize(512),
loadedPtr(new FaceMapType())
{
-#ifdef USE_PANGO_WIN32
-#else
+#ifndef USE_PANGO_WIN32
pango_ft2_font_map_set_resolution(PANGO_FT2_FONT_MAP(fontServer),
72, 72);
-
- fontContext = pango_font_map_create_context(fontServer);
-
pango_ft2_font_map_set_default_substitute(PANGO_FT2_FONT_MAP(fontServer),
FactorySubstituteFunc,
this,