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.
I found that the fix is already in the source. so I closed this bug.
Created attachment 42916 [details]
patch for default ctl font with angsana new