Issue 43495 - Large font family installed using fontconfig confuses OOo
Summary: Large font family installed using fontconfig confuses OOo
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 680m80
Hardware: All Linux, all
: P4 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@gsl
URL: https://bugs.freedesktop.org/show_bug...
Keywords: needmoreinfo, oooqa
: 56285 57890 (view as issue list)
Depends on: 79878
Blocks:
  Show dependency tree
 
Reported: 2005-02-24 18:17 UTC by ralphie
Modified: 2008-10-29 18:23 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ralphie 2005-02-24 18:17:24 UTC
Copy&Paste from freedesktop bugzilla. They (Keith 
Packard to be exact) say this is NOTOURBUG

Subject: Large family confuses fontconfig
Package: fontconfig
Version: 2.2.3-4
Severity: normal

*** Please type your report below this line ***
I' ve just bought some nice Adobe fonts with small caps and
oldstyle figures. I tried to install them by putting them
into .fonts in my home directory. The following files were
copied there, all directly from the CD, no conversion or
similar:

AGaramond-Italic.afm
AGaramond-Italic.pfa
AGaramond-ItalicOsF.afm
AGaramond-ItalicOsF.pfa
AGaramond-Regular.afm
AGaramond-Regular.pfa
AGaramond-RegularSC.afm
AGaramond-RegularSC.pfa
AGaramond-Semibold.afm
AGaramond-Semibold.pfa
AGaramond-SemiboldItalic.afm
AGaramond-SemiboldItalic.pfa
AGaramond-SemiboldItalicOsF.afm
AGaramond-SemiboldItalicOsF.pfa
AGaramond-SemiboldSC.afm
AGaramond-SemiboldSC.pfa
AGaramond-Titling.afm
AGaramond-Titling.pfa

fc-list gives me the following:

client21% fc-list | grep Garam | sort
Adobe Garamond:style=Italic
Adobe Garamond:style=Italic Oldstyle Figures
Adobe Garamond:style=Regular
Adobe Garamond:style=Semibold
Adobe Garamond:style=Semibold Italic
Adobe Garamond:style=Semibold Italic Oldstyle Figures
Adobe Garamond:style=Semibold Small Caps & Oldstyle Figures
Adobe Garamond:style=Small Caps & Oldstyle Figures
Adobe Garamond:style=Titling Capitals

but that does not really help me in practice because
I cannot use these fonts. In the font menu of e.g. 
AbiWord I get "Adobe Garamond". If I select the regular
style (no Bold, no Italic) I get "Adobe Garamond:style=Semibold".

If I select italic, I get "Adobe Garamond:style=Semibold Italic Oldstyle
Figures".

I cannot select any other styles in this family. 

I am not even sure this is a bug, or a bug in fontconfig, but 
if it is not a bug, IMHO the documentation could be improved.
If it is a bug somewhere else, please do tell me!

TIA
/ralph


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fontconfig depends on:
ii  debconf [debconf-2.0]       1.4.42       Debian configuration management sy
ii  defoma                      0.11.8-0.1   Debian Font Manager -- automatic f
ii  gsfonts-x11                 0.17         Make Ghostscript fonts available t
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libfontconfig1              2.2.3-4      generic font configuration library
ii  msttcorefonts               1.2          Installer for Microsoft TrueType c
ii  ttf-bitstream-vera          1.10-3       The Bitstream Vera family of free 
ii  ucf                         1.13         Update Configuration File: preserv

-- debconf information:
* fontconfig/rendering_type: Bytecode interpreter (CRT screens)
* fontconfig/subpixel_rendering: false
* fontconfig/enable_bitmaps: false
* fontconfig/enable_autohinter: false


------- Additional Comment #1 From Keith Packard 2005-02-24 10:02 [reply] -------

This appears to be largely an application limitation -- applications which
specify only weight/slant values are unable to correctly disambiguate among
several varients not covered by those settings.  I'm not quite sure how to solve
this; application developers seem reluctant to offer the actual style names in
menus, even though they are often localized in the font file.

There is a minor bug demonstrated here which should be fixed in CVS -- mistaking
Semibold for Regular.
Comment 1 christof.pintaske 2005-02-28 15:17:37 UTC
cp->mmp: something for you ? 
Comment 2 gus_est_prgms 2005-07-03 21:18:37 UTC
I still having OOo crashes when I put a lot of fonts familys on my Xorg X11. I
was posted on other bug report (closed) cause no more proofs, but new Beta Still
having this issue I can't choose a font from the main menu, cause when some weak
font is beeng draw OOo get a crash. m113
Comment 3 lohmaier 2005-11-09 23:48:46 UTC
*** Issue 56285 has been marked as a duplicate of this issue. ***
Comment 4 andreas_prilop 2005-11-11 12:57:51 UTC
I install a PostScript typeface Foobar consisting of a *single* font/style.

When the name is Foobar-Light,
StarOffice 8 shows the style correctly as "Light".

When the name is Foobar-Demibold or Foobar-Semibold or Foobar-Boldoni,
StarOffice 8 shows the style *corrupted* as "Bold".

Apparently, *every* style name that has the *sub*string "bold"
is wrongly displayed as "Bold".

Conclusion:
DO NOT MESS with style names! Accept all style names as they are!
Comment 5 ralphie 2005-11-11 13:21:09 UTC
andreas_prilop: I am not "messing around" with font names. The font names
given on top of this issue are the original names as the fonts come directly off
a Adobe font cd. I suppose the same is true for the submitter of #56285
Comment 6 andreas_prilop 2005-11-11 13:32:22 UTC
My bug report has nothing at all to do with Adobe
and with any Adobe font CD.

I have a PostScript font called "Foobar-Semibold".

StarOffice 8 messes up this name since it displays
it as "Foobar Bold".

To show "Semibold" as "Bold" is what I call "to mess with".
Comment 7 ralphie 2005-11-11 13:44:12 UTC
Ok, sorry, I misunderstood you. I thought your last comment was about manually
renaming PostScript font names. So in fact your bug is exactly the same as mine:
It seems fontconfig is used in a very crude way in OO/SO, that does not allow
to handle a bit more complex font families.
Comment 8 lohmaier 2005-11-15 01:12:24 UTC
*** Issue 57890 has been marked as a duplicate of this issue. ***
Comment 9 82obuu4j 2005-11-15 08:10:44 UTC
This does not seem to be a fontconfig issue!

It also happens when you move font files directly into the openoffice font
directory /usr/lib/openoffice2/share/fonts/truetype (on Ubuntu Linux).

fc-list does not show these fonts, so they are not going through fontconfig.

In ~/.openoffice.org2/user/psprint/pspfontcache I see

File:0759A___.pfb
1;1
Swiss 721
-1;Swiss721BT-Medium;0;6;0;2;91;965;236;201;0;1239;719;1239;719;0;0759A___.afm

File:0760A___.pfb
1;1
Swiss 721
-1;Swiss721BT-MediumItalic;2;6;0;2;91;965;236;201;0;1239;719;1239;719;0;0760A___.afm

File:0001A___.pfb
1;1
Swiss 721
-1;Swiss721BT-Light;0;3;0;2;91;965;236;201;0;1181;719;1181;719;0;0001A___.afm

File:0002A___.pfb
1;1
Swiss 721
-1;Swiss721BT-LightItalic;2;3;0;2;91;964;236;200;0;1181;719;1181;719;0;0002A___.afm

In the font selector in writer there is just one entry "Swiss 721" and selecting
that I get the medium style. No way to select the light style.

In OO.org2 on Windows there are two entries, "Swiss 721 lt" and "Swiss 721 md".
Comment 10 ulf.stroehler 2005-11-15 08:21:32 UTC
issue 42835 is basically the same. From m88 on it should be possible to select
the additional styles in "Format->Character".
Comment 11 82obuu4j 2005-11-15 12:50:07 UTC
Your are right, in Format->Character when I select the Swiss 721 font I see
Light, Light Italic, Standard and Italic.

When I select "Light" I can write in the Light style. When I select "Bold" in
the toolbar I get the medium style, but when I then unselect "Bold" it stays
with that style and does not return to the "Light" one.

Don't know how this should work in an application, but for example there are 32
styles of the Swiss 721 font. http://www.myfonts.com/fonts/bitstream/swiss-721/

I'd think that Swiss 721 in the toolbar should be the "normal" Roman version
with italic, bold and bold italic styles being chosen when you klick the icons
in the toolbar.

But what do you do with styles like light, thin, medium, condensed or black?
They do not really fit in this scheme. Is medium a bold light? Is light then the
bold thin?

From a users perspective I'd rather have als these different styles available in
the font selector then having the application trying to interpret these styles
in some way.

This different on Windows, there these fonts are correctly named and seperate in
the selector.
Comment 12 ralphie 2006-09-01 15:20:50 UTC
Is there still work done on this bug? Could someone from QA please try to at least
verify it? I will supply the files needed by mail, if necessary (can´t attach
them though).
Comment 13 thackert 2008-07-16 08:55:55 UTC
Hello ralphie, *,
have you run fc-cache in the folder with your fonts? And have you run it as root or as user?
And which desktop manager are you using? GNOME or KDE? Have you tried to add your fonts with 
their appropriated tools?
Comment 14 stefan.baltzer 2008-10-29 18:19:10 UTC
SBA: Font stuff is different in OOo 3.0. I remember several fixes in the past.
Reassigned to ES. Put PL and HDU on CC. 

Comment 15 stefan.baltzer 2008-10-29 18:21:16 UTC
Set to "Worksforme".
Comment 16 stefan.baltzer 2008-10-29 18:23:39 UTC
Closed. Feel free to reopen this one based on findings in OOo 3.0.