aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-11-07 12:49:35 +1100
committernyamatongwe <devnull@localhost>2011-11-07 12:49:35 +1100
commitb3655f501b2d6232781391bf431a57110b840921 (patch)
treeff02b4da94cca9fb60991c6c933f6419fb9456c5
parent6ab87998d85f5d415ebcffdc45630cedb347985e (diff)
downloadscintilla-mirror-b3655f501b2d6232781391bf431a57110b840921.tar.gz
Fix size of font in IME.
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 4456a1983..af04ff415 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2173,7 +2173,7 @@ void ScintillaWin::ImeStartComposition() {
deviceHeight = (sizeZoomed * surface->LogPixelsY()) / 72;
}
// The negative is to allow for leading
- lf.lfHeight = -(abs(deviceHeight));
+ lf.lfHeight = -(abs(deviceHeight / SC_FONT_SIZE_MULTIPLIER));
lf.lfWeight = vs.styles[styleHere].weight;
lf.lfItalic = static_cast<BYTE>(vs.styles[styleHere].italic ? 1 : 0);
lf.lfCharSet = DEFAULT_CHARSET;