Closed Bug 306124 Opened 19 years ago Closed 17 years ago

uses wrong font: fc-match serif is "Bitstream Vera Serif", firefox uses type1 gsfonts

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Assigned: blizzard)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8b3) Gecko/20050716 Debian/1.0.99+deerpark-alpha2-1 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8b3) Gecko/20050716 Debian/1.0.99+deerpark-alpha2-1 Firefox/1.0+

Package: mozilla-firefox
Version: 1.0.99+deerpark-alpha2-1
Severity: normal

In my system I have the following fonts installed:

jaworz:~$ fc-list | sort
Bitstream Vera Sans Mono:style=Bold
Bitstream Vera Sans Mono:style=Bold Oblique
Bitstream Vera Sans Mono:style=Oblique
Bitstream Vera Sans Mono:style=Roman
Bitstream Vera Sans:style=Bold
Bitstream Vera Sans:style=Bold Oblique
Bitstream Vera Sans:style=Oblique
Bitstream Vera Sans:style=Roman
Bitstream Vera Serif:style=Bold
Bitstream Vera Serif:style=Roman
Century Schoolbook L:style=Bold
Century Schoolbook L:style=Bold Italic
Century Schoolbook L:style=Italic
Century Schoolbook L:style=Roman
DejaVu Sans Condensed:style=Bold
DejaVu Sans Condensed:style=BoldOblique
DejaVu Sans Condensed:style=Condensed
DejaVu Sans Condensed:style=Oblique
DejaVu Sans Mono:style=Bold
DejaVu Sans Mono:style=BoldOb
DejaVu Sans Mono:style=Oblique
DejaVu Sans Mono:style=Roman
DejaVu Sans:style=Bold
DejaVu Sans:style=BoldOblique
DejaVu Sans:style=Book
DejaVu Sans:style=Oblique
DejaVu Serif Condensed:style=Bold
DejaVu Serif Condensed:style=BoldOblique
DejaVu Serif Condensed:style=Condensed
DejaVu Serif Condensed:style=Oblique
DejaVu Serif:style=Bold
DejaVu Serif:style=BoldOblique
DejaVu Serif:style=Oblique
DejaVu Serif:style=Roman
Dingbats:style=Regular
Nimbus Mono L:style=Bold
Nimbus Mono L:style=Bold Oblique
Nimbus Mono L:style=Regular
Nimbus Mono L:style=Regular Oblique
Nimbus Roman No9 L:style=Medium
Nimbus Roman No9 L:style=Medium Italic
Nimbus Roman No9 L:style=Regular
Nimbus Roman No9 L:style=Regular Italic
Nimbus Sans L:style=Bold
Nimbus Sans L:style=Bold Condensed
Nimbus Sans L:style=Bold Condensed Italic
Nimbus Sans L:style=Bold Italic
Nimbus Sans L:style=Regular
Nimbus Sans L:style=Regular Condensed
Nimbus Sans L:style=Regular Condensed Italic
Nimbus Sans L:style=Regular Italic
Standard Symbols L:style=Regular
URW Bookman L:style=Demi Bold
URW Bookman L:style=Demi Bold Italic
URW Bookman L:style=Light
URW Bookman L:style=Light Italic
URW Chancery L:style=Medium Italic
URW Gothic L:style=Book
URW Gothic L:style=Book Oblique
URW Gothic L:style=Demi
URW Gothic L:style=Demi Oblique
URW Palladio L:style=Bold
URW Palladio L:style=Bold Italic
URW Palladio L:style=Italic
URW Palladio L:style=Roman
jaworz:~$

The defaults for "serif" and "sans-serif" are as follows:

jaworz:~$ fc-match serif
VeraSe.ttf: "Bitstream Vera Serif" "Roman"
jaworz:~$ fc-match sans-serif
Vera.ttf: "Bitstream Vera Sans" "Roman"
jaworz:~$

When I go in Firefox to Preferences -> Fonts -> Advanced, for all
"regions" (Western, Central European, etc...) it shows:

Proportional: Serif
Serif:        serif

So the default font should be "Bitstream Vera Serif".

I know how that font looks like, and can recognize it from the ugly
Type1 fonts supplied by the package "gsfonts" (Nimbus/URW ones above),
and I see that Firefox uses some font from gsfonts instead of the
"Bitstream Vera Serif" font in all webpages I browse. Only in the
Firefox menus (File, Edit, etc...), and form buttons, select drop-down
lists in POST forms etc use Bitstream Vera. 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mozilla-firefox depends on:
ii  debianutils               2.14.2         Miscellaneous utilities specific t
ii  fontconfig                2.3.2-1        generic font configuration library
ii  libatk1.0-0               1.10.1-2       The ATK accessibility toolkit
ii  libc6                     2.3.5-4        GNU C Library: Shared libraries an
ii  libfontconfig1            2.3.2-1        generic font configuration library
ii  libfreetype6              2.1.10-1       FreeType 2 font engine, shared lib
ii  libgcc1                   1:4.0.1-6      GCC support library
ii  libglib2.0-0              2.8.0-1        The GLib library of C routines
ii  libgtk2.0-0               2.6.9-1        The GTK+ graphical user interface 
ii  libidl0                   0.8.5-1        library for parsing CORBA IDL file
ii  libjpeg62                 6b-10          The Independent JPEG Group's JPEG 
ii  libpango1.0-0             1.8.2-1        Layout and rendering of internatio
ii  libpng12-0                1.2.8rel-1     PNG library - runtime
ii  libstdc++6                4.0.1-6        The GNU Standard C++ Library v3
ii  libx11-6                  6.8.2.dfsg.1-5 X Window System protocol client li
ii  libxext6                  6.8.2.dfsg.1-5 X Window System miscellaneous exte
ii  libxft2                   2.1.7-1        FreeType-based font drawing librar
ii  libxp6                    6.8.2.dfsg.1-5 X Window System printing extension
ii  libxrender1               1:0.9.0-2      X Rendering Extension client libra
ii  libxt6                    6.8.2.dfsg.1-5 X Toolkit Intrinsics
ii  psmisc                    21.6-1         Utilities that use the proc filesy
ii  xlibs                     6.8.2.dfsg.1-5 X Window System client libraries m
ii  zlib1g                    1:1.2.3-3      compression library - runtime

mozilla-firefox recommends no packages.

-- no debconf information

Bug filed also in Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=325199

Also all non-default options related to fonts:

jaworz:~$ cat /home/miernik/.mozilla/firefox/qza4wx1i.default/prefs.js | grep font
user_pref("browser.display.use_document_fonts", 0);
user_pref("font.minimum-size.ar", 10);
user_pref("font.minimum-size.el", 10);
user_pref("font.minimum-size.he", 10);
user_pref("font.minimum-size.ja", 10);
user_pref("font.minimum-size.ko", 10);
user_pref("font.minimum-size.th", 10);
user_pref("font.minimum-size.tr", 10);
user_pref("font.minimum-size.x-baltic", 10);
user_pref("font.minimum-size.x-central-euro", 10);
user_pref("font.minimum-size.x-cyrillic", 10);
user_pref("font.minimum-size.x-devanagari", 10);
user_pref("font.minimum-size.x-tamil", 10);
user_pref("font.minimum-size.x-unicode", 10);
user_pref("font.minimum-size.x-user-def", 10);
user_pref("font.minimum-size.x-western", 10);
user_pref("font.minimum-size.zh-CN", 10);
user_pref("font.minimum-size.zh-HK", 10);
user_pref("font.minimum-size.zh-TW", 10);
user_pref("font.size.fixed.ar", 10);
user_pref("font.size.fixed.el", 10);
user_pref("font.size.fixed.he", 10);
user_pref("font.size.fixed.ja", 10);
user_pref("font.size.fixed.ko", 10);
user_pref("font.size.fixed.th", 10);
user_pref("font.size.fixed.tr", 10);
user_pref("font.size.fixed.x-baltic", 10);
user_pref("font.size.fixed.x-central-euro", 10);
user_pref("font.size.fixed.x-cyrillic", 10);
user_pref("font.size.fixed.x-devanagari", 10);
user_pref("font.size.fixed.x-tamil", 10);
user_pref("font.size.fixed.x-unicode", 10);
user_pref("font.size.fixed.x-user-def", 10);
user_pref("font.size.fixed.x-western", 10);
user_pref("font.size.fixed.zh-CN", 10);
user_pref("font.size.fixed.zh-HK", 10);
user_pref("font.size.fixed.zh-TW", 10);
user_pref("font.size.variable.ar", 10);
user_pref("font.size.variable.el", 10);
user_pref("font.size.variable.he", 10);
user_pref("font.size.variable.ja", 10);
user_pref("font.size.variable.ko", 10);
user_pref("font.size.variable.th", 10);
user_pref("font.size.variable.tr", 10);
user_pref("font.size.variable.x-baltic", 10);
user_pref("font.size.variable.x-central-euro", 10);
user_pref("font.size.variable.x-cyrillic", 10);
user_pref("font.size.variable.x-devanagari", 10);
user_pref("font.size.variable.x-tamil", 10);
user_pref("font.size.variable.x-unicode", 10);
user_pref("font.size.variable.x-user-def", 10);
user_pref("font.size.variable.x-western", 10);
user_pref("font.size.variable.zh-CN", 10);
user_pref("font.size.variable.zh-HK", 10);
user_pref("font.size.variable.zh-TW", 10);
jaworz:~$

Everything else is default.



Reproducible: Always

Steps to Reproduce:
1. Install Debian GNU/Linux sid
2. Install packages ttf-bitstream-vera, gsfonts, mozilla-firefox, fontconfig
3. Go to any website
4. Check with 'fc-match serif' that the default font used as 'serif' is a
Bitstream Vera font
Actual Results:  
The font is some ugly Type 1 font from gsfonts

Expected Results:  
A nice antialiased Bitstream Vera font should be used on the webpage
Assignee: nobody → blizzard
Component: General → GFX: Gtk
Product: Firefox → Core
QA Contact: general → gtk
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Should probably depend on the cairo work...
Does this bug still occur in a recent trunk build?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
WFM, reopen if still seeing
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.