From 79585e218c40f9010601e8af442b573ece40c5ea Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 20 Apr 2021 10:57:59 +1000 Subject: Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite. --- src/CallTip.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/CallTip.cxx') diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 22f559ef7..f9f3ce7f7 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -272,7 +272,9 @@ void CallTip::MouseClick(Point pt) noexcept { PRectangle CallTip::CallTipStart(Sci::Position pos, Point pt, int textHeight, const char *defn, const char *faceName, int size, int codePage_, int characterSet, - int technology, const Window &wParent) { + int technology, + const char *localeName, + const Window &wParent) { clickPlace = 0; val = defn; codePage = codePage_; @@ -283,7 +285,8 @@ PRectangle CallTip::CallTipStart(Sci::Position pos, Point pt, int textHeight, co inCallTipMode = true; posStartCallTip = pos; const XYPOSITION deviceHeight = static_cast(surfaceMeasure->DeviceHeightFont(size)); - const FontParameters fp(faceName, deviceHeight / SC_FONT_SIZE_MULTIPLIER, SC_WEIGHT_NORMAL, false, 0, technology, characterSet); + const FontParameters fp(faceName, deviceHeight / SC_FONT_SIZE_MULTIPLIER, SC_WEIGHT_NORMAL, + false, 0, technology, characterSet, localeName); font = Font::Allocate(fp); // Look for multiple lines in the text // Only support \n here - simply means container must avoid \r! -- cgit v1.2.3