summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2000-12-08 17:09:12 +0000
committerThomas Lange <tl@openoffice.org>2000-12-08 17:09:12 +0000
commita28a82ff640e0dfbe7e1615a1813e6b4cd1a11e6 (patch)
tree4982a01f552949036734775dbfffb623393f4c7e /starmath
parent1d6b4ecf74d380a20970d49c46a4ca3b50f5d8d8 (diff)
#81649# CJK and CTL fontheight set
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index f43efc166bbc..51349be2d189 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edit.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: tl $ $Date: 2000-10-19 09:44:47 $
+ * last change: $Author: tl $ $Date: 2000-12-08 18:09:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -195,14 +195,19 @@ void SmEditWindow::ImplSetFont()
Font aFont = GetFont();
pEditEngine->SetDefTab( USHORT( GetTextWidth( C2S("XXXX") ) ) );
+ long nFntHeight = aFont.GetSize().Height();
+
DBG_ASSERT( pEditEngineItemPool, "NULL pointer");
pEditEngineItemPool->SetPoolDefaultItem(
SvxFontItem( aFont.GetFamily(), aFont.GetName(),
aFont.GetStyleName(), aFont.GetPitch(), aFont.GetCharSet(),
EE_CHAR_FONTINFO ) );
pEditEngineItemPool->SetPoolDefaultItem(
- SvxFontHeightItem( aFont.GetSize().Height(), 100,
- EE_CHAR_FONTHEIGHT ) );
+ SvxFontHeightItem( nFntHeight, 100, EE_CHAR_FONTHEIGHT ) );
+ pEditEngineItemPool->SetPoolDefaultItem(
+ SvxFontHeightItem( nFntHeight, 100, EE_CHAR_FONTHEIGHT_CJK ) );
+ pEditEngineItemPool->SetPoolDefaultItem(
+ SvxFontHeightItem( nFntHeight, 100, EE_CHAR_FONTHEIGHT_CTL ) );
// pEditEngineItemPool->SetPoolDefaultItem(
// SvxWeightItem( WEIGHT_BOLD, EE_CHAR_WEIGHT ) );