]> git.lyx.org Git - features.git/commitdiff
speedup math init time when symbol font is not available (qt)
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 19 Dec 2005 11:03:07 +0000 (11:03 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 19 Dec 2005 11:03:07 +0000 (11:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10669 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/symbols

index fb586e5e33e9ced54fc073432b67083a7f0c0f64..bdb5d9c9614016bf374c0c1140bfd98cd0dfe8c5 100644 (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-14  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * CREDITS:
index 343fee12879b268bfe5618e11573085af4b0b080..16585777e626737785e74a89b4d5e9e3ba37a12d 100644 (file)
@@ -815,16 +815,16 @@ endif
 \def\AA{\AA}{Å}
 \def\O{\O}{Ø}
 
-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{}}