]> git.lyx.org Git - lyx.git/commitdiff
update comments.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 2 Dec 2006 21:55:28 +0000 (21:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 2 Dec 2006 21:55:28 +0000 (21:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16142 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiFontMetrics.h

index e2e168a9ff9464deea2cde79841c4d4c38ab354a..a3b680d66166c25f848a36f3e4578b89e24302fd 100644 (file)
@@ -19,8 +19,6 @@
 #include <QFontMetrics>
 #include <QHash>
 
-// 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<char_type, int> width_cache_;
 
        struct AscendDescend {
                short int ascent;
                short int descent;
        };
+       /// Cache of char ascends and descends
        mutable QHash<char_type, AscendDescend> metrics_cache_;
        /// fill in \c metrics_cache_ at specified value.
        void fillMetricsCache(char_type) const;