diff options
author | Thomas Lange <tl@openoffice.org> | 2001-07-17 07:28:21 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-07-17 07:28:21 +0000 |
commit | aa73f452d6c0446d6d22f9b0de6f88efb817b589 (patch) | |
tree | b2ebfd7588b1cfc55f2d340e4bd8cc6827a23ca3 /starmath/source/node.cxx | |
parent | 6949d6e8284f972b48859a83ff07d01b8fc22a25 (diff) |
#89759# StarMath font => StarSymbol font
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 09068fb5c761..368193119681 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2,9 +2,9 @@ * * $RCSfile: node.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: tl $ $Date: 2001-06-28 13:51:13 $ + * last change: $Author: tl $ $Date: 2001-07-17 08:28:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1779,8 +1779,7 @@ long SmOperNode::CalcSymbolHeight(const SmNode &rSymbol, nHeight = nHeight * 686L / 845L; } - // correct user-defined symbols to match height of sum from StarMath - // font + // correct user-defined symbols to match height of sum from used font if (rSymbol.GetToken().eType == TSPECIAL) nHeight = nHeight * 845L / 686L; @@ -2672,8 +2671,9 @@ void SmMathSymbolNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocSh { SmNode::Prepare(rFormat, rDocShell); - DBG_ASSERT(GetFont().GetCharSet() == RTL_TEXTENCODING_SYMBOL, - "Sm : falsches CHARSET fr Zeichen aus dem StarMath Font"); + DBG_ASSERT(GetFont().GetCharSet() == RTL_TEXTENCODING_SYMBOL || + GetFont().GetCharSet() == RTL_TEXTENCODING_UNICODE, + "incorrect charset for character from StarMath/StarSymbol font"); Flags() |= FLG_FONT | FLG_ITALIC; }; @@ -2722,14 +2722,13 @@ void SmSpecialNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell Size aOldSize = GetFont().GetSize(); if (pSym = rDocShell.GetSymSetManager().GetSymbol(GetToken().aText)) - { SetText( pSym->GetCharacter() ); + { + SetText( pSym->GetCharacter() ); GetFont() = pSym->GetFace(); - - if (GetFont().GetName().EqualsIgnoreCaseAscii("StarMath")) - GetFont().SetCharSet(RTL_TEXTENCODING_SYMBOL); } else - { SetText( GetToken().aText ); + { + SetText( GetToken().aText ); GetFont() = rFormat.GetFont(FNT_VARIABLE); } GetFont().SetSize(aOldSize); |