Description of problem: Is it possible to use TrueType font instead of Bitmap in the text input area? Version-Release number of selected component (if applicable): openoffice.org-core-2.0.1.1-5.2 How reproducible: Always Steps to Reproduce: 1.start oowriter in zh_CN or zh_TW locale 2. 3. Actual results: bitmap font is used for font size 8-12 Expected results: truetype font instead Additional info:
OOo should only use truetype or type1 fonts, in theory at least. By "text input area" do you mean writer itself ? Is this with or without the fonts-chinese installed, "with" I assume ? What font is shown in the font bar in writer when the bad looking letters are selected "AR PL SungtiL GB" ? And what is the output of echo $LANG It would be really good if you could simply attach a document which demonstrates this so I can see what the problem looks like. The way this is supposed to work is that writer has a list of fonts which it would like to use for zh_cn and zh_tw and we ask fontconfig to give up an appropiate replacement font if it doesn't exist.
I had a talk to Lawrence and I think I understand the issue. The recently the fontconfig configuration was changed so that the default font for those locales using fontconfig is AR PL ShanHeiSun Uni which you see if you do $ LANG=zh_TW.UTF-8 fc-match uming.ttf: "AR PL ShanHeiSun Uni" "Regular" This font has embedded bitmaps aswell as outline glyphs. This is easy to see if in oowriter you select that font and type some text with a point size of 8-12 as Lawrence indicated, if you then select a range of text in that font and change the point size to 13 you can immediately see that the embedded bitmaps are no longer used. I think what is needed is a way to tell open office to use the outline glyphs rather than the embedded bitmaps either globally or for that particular font, I don't know if oowriter has the facility to do that. I know it can be done via fontconfig, but I tried it and it seems that oowriter doesn't have support for the "embeddedbitmap" fontconfig directive which is unsurprising as it is relatively new.
Created attachment 124096 [details] sample text document Thanks for the clarification. Please find attached the sample document requested and start owwriter in the zh_CN locale.
So you want it the way it looks from > export SAL_EMBEDDED_BITMAP_PRIORITY=1 > oowriter
RE: Comment #4 Yes, that is what I would like to propose in the writer. However, we still want to keep the bitmaps font in the menu. Is that possible? ;)
I propose to honour the embedbitmap flag from fontconfig, so things would end up handled the same as the rest of the gnome desktop. i.e. embeddedbitmaps would end up being disabled everywhere that this particular font (and other such marked ones) is used, whether gnome or OOo. menu or writer canvas
Yup, I understand. In that case, I am happy with the current setting. Thank you. :-)
oky doky, well anyway http://qa.openoffice.org/issues/show_bug.cgi?id=61841 is my patch to honour the fontconfig "embeddedbitmap" setting. Though of course our current fontconfig setting for this particular font is "true" so no change would take place for the sample document.
*** Bug 183164 has been marked as a duplicate of this bug. ***