mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
181f765889
commit
efb34ae38c
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user