https://issues.apache.org/bugzilla/show_bug.cgi?id=30311





--- Comment #15 from Dmitriy Kumshayev <[EMAIL PROTECTED]>  2008-04-07 20:45:24 
PST ---
Created an attachment (id=21789)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21789)
Set some bits in FontFormatting record to match with Excel

I verified the comparison between Excel's FontFormatting record and POI's.
Actually the first 64 bytes of 118 byte array according to OpenOffice
documentation are reserved for the font name. My code initializes this area
with 0s which works fine for Excel. Excel seem to live some random garbage 
there after the bytes containing 0 length. (I found a substring of a printer
name in that area). I believe the comparison of these first 64 bytes does not
give a lot.

I reviewed the rest 54 bytes and found one difference (which somehow did not
affect Excel's behavior). I noticed that when the file is created by excel, 4
bytes at offset 112 (documented by OpenOffice as "Not used") always contain
0x7FFFFFFF.
So I did the same in the constructor. Now they should match with Excel.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to