font_loader.C (font_info): correct calculation of font size

t size) for qt.

From Dekel and with small change by me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5427 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-10-16 16:11:12 +00:00
parent 181f765889
commit efb34ae38c
2 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2002-10-16 Lars Gullik Bjønnes <larsbj@birdstep.com>
* qfont_loader.C (font_info): correct calculation of font size
(point size) for qt.
2002-10-15 Lars Gullik Bjønnes <larsbj@birdstep.com>
* QBrowseBox.C (QBrowseBox): transpose const char

View File

@ -107,8 +107,8 @@ qfont_loader::font_info::font_info(LyXFont const & f)
break;
}
font.setPointSize(int((lyxrc.font_sizes[f.size()] * lyxrc.dpi *
(lyxrc.zoom / 100.0)) / 72.27 + 0.5));
font.setPointSizeFloat(lyxrc.font_sizes[f.size()]
* lyxrc.zoom / 100.0);
// FIXME: lyxrc, check for failure etc.