lyx_mirror/development
Abdelrazak Younes 00edcc582f This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk.
Basically, I replaced all methods in the font_metrics namespace by a proper virtual interface FontMetrics. The FontLoader is _the_ container for FontMetrics.

This patch should also bring some optimizations in a number of place in the code. This is because we do not need any more to search for the LyXFont at each font_metrics call. In effect, the speed advantage is not as sensible and this is a bit deceiving considering that this was my primary motivation behind the patch. But I like the patch anyway as it cleans up the relation and interfacing between fonts, metrics and frontends.

* frontends/FontMetrics.h: new virtual interface. Renamed from font_metrics.h

* qt4/GuiFontMetrics: corresponding qt4 implememtation. Renamed from qfont_metrics.C. The smallCaps particular case treatment has been transfered here as well as the width cache for MacOSX and Windows.

* qt4/QLPainter.C: the smallCapsText has been reworked to return the width of the drawn text.C

all other files: replace font_metric helper function call with corresponding FontMetrics method calls.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-07 16:15:06 +00:00
..
cmake add instruction to change search path for gnuwin32 + small corrections 2006-09-25 15:34:04 +00:00
Code_rules Whitespace, only whitespace. Part II. 2004-10-28 14:35:53 +00:00
lyx3 major cleanup of this totally outdated file 2006-07-14 08:30:26 +00:00
lyxserver Whitespace, only whitespace. Part II. 2004-10-28 14:35:53 +00:00
MacOSX/LyX.app/Contents 2006-08-08 Bennett Helm <bennett.helm@fandm.edu> 2006-08-08 10:03:09 +00:00
scons This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +00:00
tools * development/tools/mkdoclinks.sh: 2006-08-13 10:21:06 +00:00
Win32 propdel svn:executable 2006-09-18 20:43:50 +00:00
boostworkaround.txt a couple of useful files 2002-05-21 23:58:52 +00:00
ChangeLog Michael's installer patch 2006-03-13 10:55:56 +00:00
FORMAT revert recent change to development/FORMAT (don't change history) 2006-08-23 12:55:23 +00:00
gettext.patch update to gettext 0.10.40 2001-10-08 14:36:39 +00:00
lazy_lyxtext.txt Ensure that the last line of text files ends with a newline. 2006-01-19 00:40:38 +00:00
lyx.rpm.README Indicate that the description is outdated 2006-07-14 08:41:46 +00:00
lyx.spec.in * development/lyx.spec.in: remove not unneeded sourcing of /etc/profile 2006-05-13 13:09:46 +00:00
Makefile.am Distribute INSTALL.scons and development/scons with autotools 2006-06-08 16:36:38 +00:00
Seminar.txt Ensure that the last line of text files ends with a newline. 2006-01-19 00:40:38 +00:00
TodoPlan-1.3 Ensure that the last line of text files ends with a newline. 2006-01-19 00:40:38 +00:00