diff --git a/starmath/inc/types.hxx b/starmath/inc/types.hxx index 37a236412767..03b6c59e2b81 100644 --- a/starmath/inc/types.hxx +++ b/starmath/inc/types.hxx @@ -2,9 +2,9 @@ * * $RCSfile: types.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: tl $ $Date: 2001-08-03 13:49:31 $ + * last change: $Author: tl $ $Date: 2002-07-31 05:32:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -63,6 +63,7 @@ #define FONTNAME_MATH "StarSymbol" +#define FONTNAME_MATH2 "OpenSymbol" ///////////////////////////////////////////////////////////////// // enum definitions for characters from the 'StarSymbol' font diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 3aa4f3072f2e..2b897ed57ef0 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rect.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: rt $ $Date: 2002-06-06 13:11:36 $ + * last change: $Author: tl $ $Date: 2002-07-31 05:32:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -193,7 +193,8 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat, aSize = Size(rDev.GetTextWidth(rText), rDev.GetTextHeight()); const FontMetric aFM (rDev.GetFontMetric()); - BOOL bIsMath = aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH ); + BOOL bIsMath = aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH ) || + aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH2 ); BOOL bAllowSmaller = bIsMath && !SmIsMathAlpha(rText); const long nFontHeight = rDev.GetFont().GetSize().Height();