]> git.lyx.org Git - features.git/commit
This commit fixes the following bug:
authorAbdelrazak Younes <younes@lyx.org>
Fri, 1 Dec 2006 16:12:24 +0000 (16:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 1 Dec 2006 16:12:24 +0000 (16:12 +0000)
commit8f98ec35e41b8cbeda39dd95aa812c3a6839c152
tree1096204f9a5900e803d6a31780267ab10dd3b880
parent7cf79bc298109025be5966132ccb75b097deb0cc
This commit fixes the following bug:
http://bugzilla.lyx.org/show_bug.cgi?id=2900

The only drawback is that it requires about 20Mo extra-memory when loading the UserGuide. If it turns out to be too much, we can switch to a QHash based solution instead of a table.

* dimension.[Ch]:
  - Dimension(LyXFont const, char_typec): new ctor
  - set(LyXFont const & font, char_type c): new method.

* frontends/FontMetrics.h:
  - width(char_type): is now a pure virtual method.

* GuiFontMetrics:
  - CharMetrics: new structure;
  - the metrics cache now also cache ascent and descent. This is especially useful for mathed.

* MathSupport.[Ch]:
  - mathed_char_dim(): deleted. We now use Dimension::set() directly instead.

* rowpainter.C: fixe empty space.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16124 a592a061-630c-0410-9148-cb99ea01b6c8
14 files changed:
src/dimension.C
src/dimension.h
src/frontends/FontMetrics.h
src/frontends/NoGuiFontMetrics.h
src/frontends/qt4/GuiFontMetrics.C
src/frontends/qt4/GuiFontMetrics.h
src/mathed/InsetMathBrace.C
src/mathed/InsetMathChar.C
src/mathed/InsetMathDelim.C
src/mathed/InsetMathDots.C
src/mathed/MathData.C
src/mathed/MathSupport.C
src/mathed/MathSupport.h
src/rowpainter.C