Enable Font width caching.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13931 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-05-25 22:37:01 +00:00
parent d544373734
commit a7c2820c49
2 changed files with 4 additions and 4 deletions

View File

@ -356,7 +356,7 @@ QLFontInfo::QLFontInfo(LyXFont const & f)
}
int QLFontInfo::width(Uchar val) const
int QLFontInfo::width(Uchar val)
{
// Starting with version 3.1.0, Qt/X11 does its own caching of
// character width, so it is not necessary to provide ours.

View File

@ -18,9 +18,9 @@
#include <QFont>
#include <QFontMetrics>
#if QT_VERSION < 0x030100
//#if QT_VERSION < 0x030100
#define USE_LYX_FONTCACHE
#endif
//#endif
#if defined(USE_LYX_FONTCACHE)
#include <map>
@ -35,7 +35,7 @@ public:
QLFontInfo(LyXFont const & f);
/// Return pixel width for the given unicode char
int width(Uchar val) const;
int width(Uchar val);
/// The font instance
QFont font;