Bug 33044 - WW8: CTL/Thai font convert incorrectly when import from MS Office 2003
Summary: WW8: CTL/Thai font convert incorrectly when import from MS Office 2003
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 RC2
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 33891
  Show dependency treegraph
 
Reported: 2011-01-12 20:28 UTC by Tantai
Modified: 2011-02-04 00:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Word .doc with Angsana New as default font (23.50 KB, application/msword)
2011-01-12 20:28 UTC, Tantai
Details
patch for default ctl font with angsana new (5.81 KB, patch)
2011-02-04 00:34 UTC, Tantai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tantai 2011-01-12 20:28:15 UTC
Created attachment 41949 [details]
Word .doc with Angsana New as default font

We found a certain type of conversion error occur noticeably often in Thai
documents when importing from some MS Word. So we did some investigation and
found a specific pattern that will reproduce the error (thanks to feedback from
the OSS department, EGAT).

1) In MS Word 2003 (they say that this happen to all versions except MS Word XP
but I haven't check that)
2) Set the default font to "Angsana New" for both Thai and Latin. The size
doesn't matter. I use 17 pt.
3) Create a blank document. Input some mixed Thai/English text, e.g. "Hello สวัสดี Again อีกครั้ง"	All the text will be in Angsana New, 17 pt.
4) Save the document as .doc, close MS Word
  - I've attached the bugdoc that've been made this way
5) Open the .doc file in Writer
6) Notice the font of the English segments v.s. Thai segments
  - the English text and format are converted correctly in Angsana New, 17 pt.
  - the Thai text are converted correctly but the fonts are changed to Time New Roman, 17 pt.

Since Time New Roman doesn't have Thai glyphs so Writer picks the glyphs from
the default font, Tahoma. The result is unbalanced-looking type since Thai glyphs in
Tahoma are big but Latin glyphs in Angsana New are small.

I've tried other fonts and it seems that this only happen to "Angsana New" only. 
It seems like there're some code that treats the font specially. Angsana New is
the default font for Thai in Writer, anyway.
Comment 1 Tantai 2011-01-18 19:29:08 UTC
I found that the fix is already in the source. so I closed this bug.
Comment 2 Tantai 2011-02-04 00:34:17 UTC
Created attachment 42916 [details]
patch for default ctl font with angsana new