Bug 150552

Summary: The Latin9 fonts from the intlfnts packages have weird names when listed by fc-list
Product: [openSUSE] SUSE Linux 10.1 Reporter: Mike Fabian <mfabian>
Component: X11 ApplicationsAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: coolo, mrueckert, tiwai, werner
Version: Beta 3.5internal   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: ignore-broken-bitmap-fonts.patch

Description Mike Fabian 2006-02-13 18:48:05 UTC
h16_bi-iso8859-15.pcf:style=Regular
h24_b-iso8859-15.pcf:style=Regular
h16_b-iso8859-15.pcf:style=Regular
h16-iso8859-15.pcf:style=Regular
h24_bi-iso8859-15.pcf:style=Regular
h24-iso8859-15.pcf:style=Regular
h16_i-iso8859-15.pcf:style=Regular
h24_i-iso8859-15.pcf:style=Regular
mfabian@magellan:~$
Comment 1 Mike Fabian 2006-02-13 19:39:26 UTC
These fonts shouldn't be listed by fontconfig at all because these are
ISO-8859-15 encoded fonts and fontconfig supports only ISO-8859-1 and
ISO-10646-1.

They were listed by fontconfig because they lacked some BDF
properties.  Not only the FOUNDRY and FAMILY_NAME were missing, also
CHARSET_REGISTRY and CHARSET_ENCODING. I added the following BDF
properties:

    FONTNAME_REGISTRY ""
    FOUNDRY "Efont"
    FAMILY_NAME "Fixed"
    WEIGHT_NAME "Medium"
    SLANT "R"
    SETWIDTH_NAME "Normal"
    ADD_STYLE_NAME ""
    PIXEL_SIZE 24
    POINT_SIZE 240
    RESOLUTION_X 75
    RESOLUTION_Y 75
    SPACING "C"
    AVERAGE_WIDTH 120
    CHARSET_REGISTRY "ISO8859"
    CHARSET_ENCODING "15"

Comment 2 Mike Fabian 2006-02-13 19:43:05 UTC
Fixed intlfnts package submitted to NOARCH.
Comment 3 Mike Fabian 2006-02-13 19:57:27 UTC
A similar problem exists for other fonts as well:

mfabian@magellan:~$ fc-list : family file  | grep -i "pcf$"
/usr/X11R6/lib/X11/fonts/misc/ptpB14.pcf.gz: ptpB14.pcf
/usr/X11R6/lib/X11/fonts/misc/johabshm16.pcf.gz: johabshm16.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpB24.pcf.gz: ptpB24.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR14.pcf.gz: ptpR14.pcf
/usr/X11R6/lib/X11/fonts/misc/xmahjongg.pcf.gz: xmahjongg.pcf
/usr/X11R6/lib/X11/fonts/misc/johabshp16.pcf.gz: johabshp16.pcf
/usr/X11R6/lib/X11/fonts/misc/iyagi16.pcf.gz: iyagi16.pcf
/usr/X11R6/lib/X11/fonts/misc/iyagis16.pcf.gz: iyagis16.pcf
/usr/X11R6/lib/X11/fonts/misc/deccurs.pcf.gz: deccurs.pcf
/usr/X11R6/lib/X11/fonts/misc/johabg16.pcf.gz: johabg16.pcf
/usr/X11R6/lib/X11/fonts/misc/ptptB14.pcf.gz: ptptB14.pcf
/usr/X11R6/lib/X11/fonts/misc/ethio24f-uni.pcf.gz: ethio24f-uni.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR12.pcf.gz: ptpR12.pcf
/usr/X11R6/lib/X11/fonts/misc/johabm16.pcf.gz: johabm16.pcf
/usr/X11R6/lib/X11/fonts/misc/seri-mj18x18.pcf.gz: seri-mj18x18.pcf
/usr/X11R6/lib/X11/fonts/misc/micro.pcf.gz: micro.pcf
/usr/X11R6/lib/X11/fonts/misc/taipei16.pcf.gz: taipei16.pcf
/usr/X11R6/lib/X11/fonts/misc/johabshg16.pcf.gz: johabshg16.pcf
/usr/X11R6/lib/X11/fonts/misc/decsess.pcf.gz: decsess.pcf
/usr/X11R6/lib/X11/fonts/misc/johabsm16.pcf.gz: johabsm16.pcf
/usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz: cursor.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpB18.pcf.gz: ptpB18.pcf
/usr/X11R6/lib/X11/fonts/misc/xtis24.pcf.gz: xtis24.pcf
/usr/X11R6/lib/X11/fonts/misc/taipei24.pcf.gz: taipei24.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpB08.pcf.gz: ptpB08.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpB10.pcf.gz: ptpB10.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR18.pcf.gz: ptpR18.pcf
/usr/X11R6/lib/X11/fonts/misc/seri-mj16x16.pcf.gz: seri-mj16x16.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR08.pcf.gz: ptpR08.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR10.pcf.gz: ptpR10.pcf
/usr/X11R6/lib/X11/fonts/misc/seri-mj22x18.pcf.gz: seri-mj22x18.pcf
/usr/X11R6/lib/X11/fonts/misc/johabsp16.pcf.gz: johabsp16.pcf
/usr/X11R6/lib/X11/fonts/misc/ethio16f-uni.pcf.gz: ethio16f-uni.pcf
/usr/X11R6/lib/X11/fonts/misc/johabp16.pcf.gz: johabp16.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpB12.pcf.gz: ptpB12.pcf
/usr/X11R6/lib/X11/fonts/misc/johabsg16.pcf.gz: johabsg16.pcf
/usr/X11R6/lib/X11/fonts/misc/ptpR24.pcf.gz: ptpR24.pcf
mfabian@magellan:~$
Comment 4 Mike Fabian 2006-02-13 20:08:16 UTC
Affected packages:

mfabian@magellan:~$ for i in $(fc-list : family file | grep -i "pcf$" | perl -p -e "s/:.*//"); do echo -n "$i: " ; rpm -qf $i; done
/usr/X11R6/lib/X11/fonts/misc/ptpB14.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/johabshm16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpB24.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpR14.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/xmahjongg.pcf.gz: xmahjong-2006.1.25-1
/usr/X11R6/lib/X11/fonts/misc/johabshp16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/iyagi16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/iyagis16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/deccurs.pcf.gz: xorg-x11-6.9.0-9
/usr/X11R6/lib/X11/fonts/misc/johabg16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptptB14.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ethio24f-uni.pcf.gz: ifntethi-1.2.1-196
/usr/X11R6/lib/X11/fonts/misc/ptpR12.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/johabm16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/seri-mj18x18.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/micro.pcf.gz: xorg-x11-6.9.0-9
/usr/X11R6/lib/X11/fonts/misc/taipei16.pcf.gz: ifntchia-1.2.1-196
/usr/X11R6/lib/X11/fonts/misc/johabshg16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/decsess.pcf.gz: xorg-x11-6.9.0-9
/usr/X11R6/lib/X11/fonts/misc/johabsm16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz: xorg-x11-6.9.0-9
/usr/X11R6/lib/X11/fonts/misc/ptpB18.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/xtis24.pcf.gz: ifntasia-1.2.1-196
/usr/X11R6/lib/X11/fonts/misc/taipei24.pcf.gz: ifntchia-1.2.1-196
/usr/X11R6/lib/X11/fonts/misc/ptpB08.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpB10.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpR18.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/seri-mj16x16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpR08.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpR10.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/seri-mj22x18.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/johabsp16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ethio16f-uni.pcf.gz: ifntethi-1.2.1-196
/usr/X11R6/lib/X11/fonts/misc/johabp16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpB12.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/johabsg16.pcf.gz: xfntkr-2.1-634
/usr/X11R6/lib/X11/fonts/misc/ptpR24.pcf.gz: xfntkr-2.1-634
mfabian@magellan:~$
Comment 5 Mike Fabian 2006-02-13 20:10:09 UTC
Maintainers of the affected packages:

xfntkr: mfabian@suse.de
xmahjong: werner@suse.de
xorg-x11: sndirsch@suse.de
ifntethi: werner@suse.de
ifntchia: werner@suse.de
Comment 6 Mike Fabian 2006-02-13 20:12:46 UTC
The fontconfig on SuSE 10.0 didn't list such broken pcf fonts at all.
Comment 7 Mike Fabian 2006-02-13 20:36:11 UTC
According to comment #6 it might be easiest to fix fontconfig to
ignore fonts where such BDF properties are missing.  Then we can avoid
fixing all broken fonts individually.


Comment 8 Mike Fabian 2006-02-13 21:30:47 UTC
Created attachment 68185 [details]
ignore-broken-bitmap-fonts.patch

The attached patch fixes the problem by ignoring all bitmap fonts
which lack the BDF property FAMILY_NAME.

This causes all broken bitmap fonts listed above to be ignored
by fontconfig.
Comment 9 Mike Fabian 2006-02-13 21:33:00 UTC
Improved fontconfig submitted to STABLE:
-------------------------------------------------------------------
Mon Feb 13 22:16:03 CET 2006 - mfabian@suse.de

- Bugzilla #150552: ignore broken bitmap fonts which don't even
  have a BDF property FAMILY_NAME.

-------------------------------------------------------------------

Closing as FIXED.