You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/05/30 07:47:53 UTC

[Bug 119555] New: [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

https://issues.apache.org/ooo/show_bug.cgi?id=119555

          Priority: P3
            Bug ID: 119555
          Assignee: ooo-issues@incubator.apache.org
           Summary: [From Symphony]font size of Fontwork changes from 96
                    to 36 after save as new .doc file
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: All
          Reporter: louqingle@gmail.com
          Hardware: PC
            Status: CONFIRMED
           Version: AOO340
         Component: save-export
           Product: word processor

Created attachment 77767
  --> https://issues.apache.org/ooo/attachment.cgi?id=77767&action=edit
fontwork

1. open FontWork_Size.doc in aoo 3.4 then save as another .doc file
2. open the new .doc file by MS word
3. Double click the fontwork, then check the value on the "Size" drop down
list.


It should be 96 but currently it's 36

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

louqle <lo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #5 from louqle <lo...@gmail.com> ---
verified in trunk build r1350879

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

zjchen <zj...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78235|                            |review?
              Flags|                            |

--- Comment #3 from zjchen <zj...@gmail.com> ---
Created attachment 78235
  --> https://issues.apache.org/ooo/attachment.cgi?id=78235&action=edit
patch for issue 119555

I have tested with sample files for export doc and odt.
notice that the there is a font size gap between AOO and MS WORD.
AOO has 30 kinds of fontwork font size, while MS WORD has 21 totally.
If change the font size to those not include in MS Word, the .doc file can be
opened correctly in AOO, but the size cannot be seen in MS Word. 

AOO Font Size
6,7,8,9,10,10.5,11,12,13,14,15,16,18,20,22,24,26,28,32,36,40,44,48,54,60,66,72,80,88,90
MS WORD Font Size
8,9,10,12,14,16,18,20,24,28,32,36,40,44,48,54,60,66,72,80,96

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

binguo <bi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|VERIFIED                    |CLOSED
                 CC|                            |binbjguo@gmail.com

--- Comment #6 from binguo <bi...@gmail.com> ---
Verified it on Aoo_Trunk_20120616.1800.1350879 and it does not reproduce, so
close it as fixed.

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
                 CC|                            |hdu@apache.org
           Hardware|PC                          |All
         Resolution|---                         |FIXED
   Target Milestone|---                         |AOO 3.5.0

--- Comment #4 from hdu@apache.org ---
Great! Thanks for finding the problem and for the patch, it was applied as
revision 1348861.

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

zjchen <zj...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zjchencdl@gmail.com

--- Comment #1 from zjchen <zj...@gmail.com> ---
After investigation, I figured out the problem is that the font size property
of font work doesn't export to new saved .doc file,  thus the font size would
be the default value 36.

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

[Bug 119555] [From Symphony]font size of Fontwork changes from 96 to 36 after save as new .doc file

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119555

--- Comment #2 from zjchen <zj...@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.