mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
use our own font width cache with Qt/Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14127 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5c8b2f4167
commit
d6e40e19ad
@ -1,3 +1,8 @@
|
|||||||
|
2006-06-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* qfont_loader.[Ch]: use our own font width cache with Qt/Mac.
|
||||||
|
Results in a big speedup.
|
||||||
|
|
||||||
2006-04-06 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
2006-04-06 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
Fix mess up of internal/external paths (from Enrico Forestieri)
|
Fix mess up of internal/external paths (from Enrico Forestieri)
|
||||||
|
@ -359,7 +359,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
|
// Starting with version 3.1.0, Qt/X11 does its own caching of
|
||||||
// character width, so it is not necessary to provide ours.
|
// character width, so it is not necessary to provide ours.
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <qfont.h>
|
#include <qfont.h>
|
||||||
#include <qfontmetrics.h>
|
#include <qfontmetrics.h>
|
||||||
|
|
||||||
#if QT_VERSION < 0x030100
|
#if QT_VERSION < 0x030100 || defined(Q_WS_MACX)
|
||||||
#define USE_LYX_FONTCACHE
|
#define USE_LYX_FONTCACHE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ public:
|
|||||||
QLFontInfo(LyXFont const & f);
|
QLFontInfo(LyXFont const & f);
|
||||||
|
|
||||||
/// Return pixel width for the given unicode char
|
/// Return pixel width for the given unicode char
|
||||||
int width(Uchar val) const;
|
int width(Uchar val);
|
||||||
|
|
||||||
/// The font instance
|
/// The font instance
|
||||||
QFont font;
|
QFont font;
|
||||||
|
@ -90,6 +90,8 @@ What's new
|
|||||||
|
|
||||||
- Much better performance when using natbib/jurabib citations (bug 2460).
|
- Much better performance when using natbib/jurabib citations (bug 2460).
|
||||||
|
|
||||||
|
- Much better performance of screen updating in LyX/Mac.
|
||||||
|
|
||||||
- Don't jump back to previous cursor position when trying to click on
|
- Don't jump back to previous cursor position when trying to click on
|
||||||
an inset (bug 2526).
|
an inset (bug 2526).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user