Bug 179692 - replace bitmap fonts in text area with TrueType font
Summary: replace bitmap fonts in text area with TrueType font
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact:
URL:
Whiteboard:
: 183164 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-02 04:14 UTC by Lawrence Lim
Modified: 2014-03-26 00:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-09 00:43:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
sample text document (6.57 KB, application/vnd.oasis.opendocument.text)
2006-02-03 07:01 UTC, Lawrence Lim
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenOffice.org 61841 0 None None None Never

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. ***


Note You need to log in before you can comment on or make changes to this bug.