incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file
Date Mon, 11 Jun 2012 08:11:50 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119555

--- Comment #2 from zjchen <zjchencdl@gmail.com> ---
The font size attribute can be exported in method
<EscherPropertyContainer::CreateCustomShapeProperties(..)> 
Here is the export implement

---------------------------------------------------------------
if ( EscherPropertyValueHelper::GetPropertyValue( aAny, aXPropSet, String(
RTL_CONSTASCII_USTRINGPARAM( "CharHeight" ) ), sal_True ) )
{
    float fCharHeight = 0.0;
    if ( aAny >>= fCharHeight )
    {
        sal_Int32 nTextSize = static_cast< sal_Int32 > ( fCharHeight * 65536 );
        AddOpt(ESCHER_Prop_gtextSize, nTextSize);
    }
}
----------------------------------------------------------------

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message