From 5858a82efa8b984d42fdf3edd80fc9d665ee13a3 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 19 Dec 2005 11:03:07 +0000 Subject: [PATCH] speedup math init time when symbol font is not available (qt) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10669 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/symbols | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index fb586e5e33..bdb5d9c961 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-12-16 Georg Baum + + * 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 * CREDITS: diff --git a/lib/symbols b/lib/symbols index 343fee1287..16585777e6 100644 --- a/lib/symbols +++ b/lib/symbols @@ -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{}}