speedup math init time when symbol font is not available (qt)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10670 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-12-19 11:08:09 +00:00
parent 20057f51aa
commit ffbb66d8e2
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-16 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* symbols: avoid use of symbol font if cmsy is available.
Saves 3 seconds in initMath() for me (qt, ~20.000 fonts)
2005-12-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* bind/sciword.bind: include math.bind, not maths.bind.

View File

@ -811,16 +811,16 @@ iffont msb
endif
\def\mathcircumflex{\mbox{\^{}}}
textdegree lyxsymbol 176 0 mathord x
iffont cmsy
# The \sim is placed too high...
\def\cong{\stackrel{_\sim}{=}}
lyxsurd cmsy 112 0 mathord x
\def\surd{^\lyxsurd}
\def\textdegree{\kern-1mu^{\circ}\kern-4mu}
else
cong lyxsymbol 64 0 mathrel x
surd lyxsymbol 214 0 mathord x
textdegree lyxsymbol 176 0 mathord x
endif
#"{\hat{}}