diff options
author | nyamatongwe <devnull@localhost> | 2000-04-21 01:59:43 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-04-21 01:59:43 +0000 |
commit | 6956977bdf58be27805d82c1aa33fc9d4c384241 (patch) | |
tree | 473a1082dbd214e4a3d4bb7d0b13d2aa111ee029 /src/Style.cxx | |
parent | cf9e0c55121fc58093e00e8aaae211ee52ecc147 (diff) | |
download | scintilla-mirror-6956977bdf58be27805d82c1aa33fc9d4c384241.tar.gz |
Changed font sizing to use more Windows compatible calculation
Some unfinished work on fixing folding bugs.
Diffstat (limited to 'src/Style.cxx')
-rw-r--r-- | src/Style.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Style.cxx b/src/Style.cxx index 47ca196f3..36d4b9850 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -89,8 +89,8 @@ void Style::Realise(Surface &surface, int zoomLevel, Style *defaultStyle) { if (aliasOfDefaultFont) font.SetID(0); else - font.Release(); - int deviceHeight = (sizeZoomed * surface.LogPixelsY()) / 72; + font.Release(); + int deviceHeight = surface.DeviceHeightFont(sizeZoomed); aliasOfDefaultFont = defaultStyle && (EquivalentFontTo(defaultStyle) || !fontName); if (aliasOfDefaultFont) { |