aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-20 10:57:59 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-20 10:57:59 +1000
commit79585e218c40f9010601e8af442b573ece40c5ea (patch)
treed64cab27d7ee75ef5a2a2e567dbe9c8ebd3823e9 /src/CallTip.cxx
parented434975e5de00e91718b075f04492f69c1bb04a (diff)
downloadscintilla-mirror-79585e218c40f9010601e8af442b573ece40c5ea.tar.gz
Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r--src/CallTip.cxx7
1 files changed, 5 insertions, 2 deletions
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<XYPOSITION>(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!