diff options
author | nyamatongwe <unknown> | 2011-08-07 14:18:37 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-08-07 14:18:37 +1000 |
commit | 505a8527964a09b139ed3ef13923b7c8c3b42228 (patch) | |
tree | ae0145cadafa6b76dd2a0a1c3abc1ee034962b73 /src | |
parent | f3787820600bc07008841b82037e90032619bdaa (diff) | |
download | scintilla-mirror-505a8527964a09b139ed3ef13923b7c8c3b42228.tar.gz |
Move scaling of font to pixels up into platform-independent code.
Diffstat (limited to 'src')
-rw-r--r-- | src/ViewStyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index b46cd9eb4..b722f8d02 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -92,8 +92,8 @@ void FontRealised::Realise(Surface &surface, int zoomLevel) { if (sizeZoomed <= 2 * SC_FONT_SIZE_MULTIPLIER) // Hangs if sizeZoomed <= 1 sizeZoomed = 2 * SC_FONT_SIZE_MULTIPLIER; - int deviceHeight = surface.DeviceHeightFont(sizeZoomed); - font.Create(fontName, characterSet, deviceHeight, weight, italic, extraFontFlag); + float deviceHeight = surface.DeviceHeightFont(sizeZoomed); + font.Create(fontName, characterSet, deviceHeight / SC_FONT_SIZE_MULTIPLIER, weight, italic, extraFontFlag); ascent = surface.Ascent(font); descent = surface.Descent(font); |