From 88d16356f2926d57b261355857ccaac4c10b678e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 2 Dec 2006 21:55:28 +0000 Subject: [PATCH] update comments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16142 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiFontMetrics.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/frontends/qt4/GuiFontMetrics.h b/src/frontends/qt4/GuiFontMetrics.h index e2e168a9ff..a3b680d661 100644 --- a/src/frontends/qt4/GuiFontMetrics.h +++ b/src/frontends/qt4/GuiFontMetrics.h @@ -19,8 +19,6 @@ #include #include -// Starting with version 3.1.0, Qt/X11 does its own caching of -// character width, so it is not necessary to provide ours. #if defined(Q_WS_MACX) || defined(Q_WS_WIN32) #define USE_LYX_FONTCACHE #endif @@ -75,17 +73,13 @@ private: #ifdef USE_LYX_FONTCACHE /// Cache of char widths - /** This cache adds 20Mo of memory to the LyX executable when - * loading UserGuide.lyx which contains a good number of fonts. If - * this turns out to be too much, we can switch to a \c QHash based - * solution. - **/ mutable QHash width_cache_; struct AscendDescend { short int ascent; short int descent; }; + /// Cache of char ascends and descends mutable QHash metrics_cache_; /// fill in \c metrics_cache_ at specified value. void fillMetricsCache(char_type) const;