Bug 179692

Summary: replace bitmap fonts in text area with TrueType font
Product: [Fedora] Fedora Reporter: Lawrence Lim <llim>
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs, robert, tools-bugs
Target Milestone: ---Keywords: FutureFeature, i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-09 00:43:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sample text document none

Description Lawrence Lim 2006-02-02 04:14:40 UTC
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:

Comment 1 Caolan McNamara 2006-02-02 10:24:59 UTC
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.

Comment 2 Tim Mayberry 2006-02-03 02:48:28 UTC
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.

Comment 3 Lawrence Lim 2006-02-03 07:01:37 UTC
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.

Comment 4 Caolan McNamara 2006-02-06 12:32:47 UTC
So you want it the way it looks from

> export SAL_EMBEDDED_BITMAP_PRIORITY=1
> oowriter

Comment 5 Lawrence Lim 2006-02-07 07:41:46 UTC
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? ;)

Comment 6 Caolan McNamara 2006-02-07 11:46:27 UTC
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

Comment 7 Lawrence Lim 2006-02-09 00:43:52 UTC
Yup, I understand. In that case, I am happy with the current setting. Thank you. :-)

Comment 8 Caolan McNamara 2006-02-09 11:25:38 UTC
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.

Comment 9 Caolan McNamara 2006-02-27 09:50:41 UTC
*** Bug 183164 has been marked as a duplicate of this bug. ***