Issue 76698 - Writer would not correctly display words in particular font (attached).
Summary: Writer would not correctly display words in particular font (attached).
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: OOo 2.2
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 21:22 UTC by kpalagin
Modified: 2013-08-07 14:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Illustrating screenshot (352.88 KB, image/png)
2007-04-25 21:24 UTC, kpalagin
no flags Details
ttf used in document (51.52 KB, application/octet-stream)
2007-04-25 21:26 UTC, kpalagin
no flags Details
Problematic file (2.70 KB, application/msword)
2007-04-25 21:27 UTC, kpalagin
no flags Details
screenshot after the conversion to match the font's fake charset (39.30 KB, image/png)
2007-04-26 17:19 UTC, lohmaier
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kpalagin 2007-04-25 21:22:37 UTC
Please see attached screenshot "izhitsa1.PNG" - Writer does not display 
correctly words in that font (circled in red). Competing word processors 
(AbiWord and MSWord) display the words just fine (circled in green).
I am also attaching "izh____c.ttf" and "izhitsa.doc".
Comment 1 kpalagin 2007-04-25 21:24:00 UTC
Created attachment 44688 [details]
Illustrating screenshot
Comment 2 kpalagin 2007-04-25 21:26:43 UTC
Created attachment 44689 [details]
ttf used in document
Comment 3 kpalagin 2007-04-25 21:27:57 UTC
Created attachment 44690 [details]
Problematic file
Comment 4 eric.savary 2007-04-26 13:21:44 UTC
ES->HDU: same problem in MS Word (but there, there's a fallback to a Serif font
while OOo fallbacks to a Sans Serif font). I think it's a font problem.
In this font, the Cyrillic characters are mapped to the Latin area (which is not
correct).
Thus, writing with a latin keyboard shows "faked" Cyrillic characters.
When typing with a Cyrillic keyboard mapping, another font is used (the same you
see in the screenshot).

What do you think?
Comment 5 hdu@apache.org 2007-04-26 16:10:44 UTC
I agree with ES that the problem is with the fake-unicode support of the font.
The font claims that it basically only supports latin and doesn't even hint at
that this fake unicode might be an alias for cyrillic.

Only the RTF-documents indicates a connection between the font and cyrillic:
Style 28 in the RTF-document switches the font encoding:
{\s28\f4\fs24\lang1049Normal;}

@FME: I'm not sure if we want to bother with legacy pseudo-unicode conventions.
If we want to then the solution is to translate the portion's text from unicode
back to the requested encoding (in this case lang1049) before calling into VCL.
Comment 6 lohmaier 2007-04-26 17:18:56 UTC
IMHO it is not worth the effort to make OOo aware of these fake fonts.

Instead use something like
http://docs.openoffice.ru/~doc/ooextras/cyrtools1.2.uno.zip to convert the
document to the coding the broken font uses (or even better, just get a real
font instead) - you might use Thessalonica as well to convert from one special
font-encoding to another one (mainly deals with greek though)

Attached screenshot shows the document after running Cyrillic to latin using the
abovementioned extension.
Comment 7 lohmaier 2007-04-26 17:19:51 UTC
Created attachment 44710 [details]
screenshot after the conversion to match the font's fake charset
Comment 8 frank.meies 2007-04-27 07:20:37 UTC
fme: I agree with hdu and cloph. At least we should lower the priority. 
Comment 9 kpalagin 2007-04-28 19:10:23 UTC
AbiWord handles the font just fine ...