#101895# math-symbol rectangles for OpenOffice fixed.

This commit is contained in:
Thomas Lange 2002-07-31 04:32:51 +00:00
parent 301191bc50
commit 9f65183eed
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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();