]> git.lyx.org Git - features.git/commit
Work around broken math symbol display (bug 7954)
authorGeorg Baum <baum@lyx.org>
Sat, 8 Mar 2014 10:13:39 +0000 (11:13 +0100)
committerGeorg Baum <baum@lyx.org>
Sat, 8 Mar 2014 10:13:39 +0000 (11:13 +0100)
commitbe0cd47559c33740d67aa2b2d80531ba09c920b3
tree24fa29dc4aa61ca9c508bce22fdb2dc64fe9bb11
parent188dd74618e94a2df132346f2bedc73a421d852e
Work around broken math symbol display (bug 7954)

This extends the already existing math symbol fallback mechanism in two ways:
1) When considering the availability of the math font, also take broken
   code points into account. These are currently 0x0009 and 0x00ad, depending
   on the platform.
2) If the fallback symbol in the standard "Symbol" font is not given, or if
   the "Symbol" font is not available, or the fallback symbol is one of the
   broken ones, try to use a generic unicode symbol as second fallback instead.
   If this is available, we rely on Qt to find a font which has it. Only if
   this is not available, display the symbol as ERT.
This ensures that we do never get a symbol which is not displayed: Either
it can be displayed, with or without fallback, or it will be shown as ERT.
src/frontends/FontLoader.h
src/frontends/qt4/GuiFontLoader.cpp
src/mathed/MathFactory.cpp