summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-10-30 18:50:01 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-10-30 18:50:01 +0200
commitf65c8b7b48a94574d18cf5222254b45658f81cee (patch)
tree684f49d9f96346ff1118341ab125495662213772 /vcl
parent670f646ac65772eae02b79459efcf2b086d81a31 (diff)
No need to call ParseFeatures in the constructor
Call it once where we will use its results. Change-Id: I63f3ceaf47e68bea9fab29d6836745416cf8ccb8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 61395bdc620f..dc6ca2cc745d 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -184,8 +184,6 @@ CommonSalLayout::CommonSalLayout(HDC hDC, WinFontInstance& rWinFontInstance, con
hb_face_destroy(pHbFace);
}
-
- ParseFeatures(mrFontSelData.maTargetName);
}
#elif defined(MACOSX) || defined(IOS)
@@ -210,8 +208,6 @@ CommonSalLayout::CommonSalLayout(const CoreTextStyle& rCoreTextStyle)
hb_face_destroy(pHbFace);
}
-
- ParseFeatures(mrFontSelData.maTargetName);
}
#else
@@ -229,8 +225,6 @@ CommonSalLayout::CommonSalLayout(FreetypeFont& rFreetypeFont)
hb_face_destroy(pHbFace);
}
-
- ParseFeatures(mrFontSelData.maTargetName);
}
#endif
@@ -404,6 +398,8 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
hb_buffer_set_unicode_funcs(pHbBuffer, pHbUnicodeFuncs);
#endif
+ ParseFeatures(mrFontSelData.maTargetName);
+
Point aCurrPos(0, 0);
while (true)
{