]> git.lyx.org Git - features.git/commit
Fix bug #7187: Font painting problems with emulated scaling.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 29 Dec 2010 05:35:03 +0000 (05:35 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 29 Dec 2010 05:35:03 +0000 (05:35 +0000)
commit1f5c77ec65b9a6930df32acf3dc4704a89568cb9
tree35114db342f878c94383c95304ff6b4501c4a918
parentb5c25fe3b27906380b3bf57a4009c3f62caa4c69
Fix bug #7187: Font painting problems with emulated scaling.

When creating the QFontMetrics object, we should specify a QPaintDevice. 0 is a paint device which is screen-compatible or pixmap-compatible. This makes sure that the correct DPI is used in font metrics calculations.

see also:
http://bugreports.qt.nokia.com/browse/QTBUG-16331.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37030 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/GuiFontMetrics.cpp