Last Comment Bug 47752 - [X11] font-family: cursive and fantasy render as sans-serif
: [X11] font-family: cursive and fantasy render as sans-serif
Status: NEW
[CSS1-5.2.2]
: css1, testcase
Product: Core
Classification: Components
Component: CSS Parsing and Computation (show other bugs)
: Trunk
: x86 Linux
: P4 normal with 16 votes (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
:
: Jet Villegas (:jet)
Mentors:
http://www.w3.org/Style/CSS/Test/curr...
: 622179 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-05 08:56 PDT by Tobias Burnus
Modified: 2016-10-18 20:40 PDT (History)
11 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Generic font family testcase (1.78 KB, text/html)
2001-05-20 18:33 PDT, Skewer
no flags Details
diffrent rendering of same CSS (789 bytes, text/html)
2003-01-30 02:53 PST, Bozhan Boiadzhiev
no flags Details

Description Tobias Burnus 2000-08-05 08:56:47 PDT
This is with a suse linux system with bunches of default fonts installed. (but
not TT server). 2000-08-04-21.
Go to the given page. The cursive and fantasy render as sans-serif, but slightly
different than sans-serif. At least cursive should be treated correctly
(Chancery I is available)
Specs:
http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families
Comment 1 Jeffrey Baker 2000-08-07 13:25:51 PDT
Wow on my machine fantasy and cursive are rendered in a character cell font. 
Confirming.
Comment 2 Pierre Saslawsky 2000-08-22 20:40:24 PDT
The default fonts are fine on Mac and Windows. Reassigned to Erik to fix the 
defaults on Unix.
Comment 3 Pierre Saslawsky 2000-08-22 20:42:09 PDT
Of course, this is related to bug 28899.
Comment 4 Frank Tang 2001-01-19 15:14:11 PST
reassign to bstell and keep it as Future
Comment 5 Hixie (not reading bugmail) 2001-02-12 16:41:17 PST
Netscape's standard compliance QA team reorganised itself once again, so taking 
remaining non-tables style bugs. Sorry about the spam. I tried to get this done 
directly at the database level, but apparently that is "not easy because of the 
shadow db", "plus it screws up the audit trail", so no can do...
Comment 6 Skewer 2001-05-20 18:30:40 PDT
I'm seeing this on 2001051704 Win98. Cursive is rendered in Comic Sans, even
though I have cursive fonts installed such as Brush Script. Will attach testcase.
Comment 7 Skewer 2001-05-20 18:33:01 PDT
Created attachment 35360 [details]
Generic font family testcase
Comment 8 kill this account 2001-11-02 15:50:26 PST
--> ftang
Comment 9 Frank Tang 2001-11-07 17:50:55 PST
bulk move NEW FUTURE bug to ASSIGN
Comment 10 Madhur Bhatia 2002-05-14 13:42:51 PDT
I still see this on redhat linux 7.3 - buildID: 2002-05-12-23-XX-PR1

Comment 11 Madhur Bhatia 2002-05-14 17:37:37 PDT
in win2000 : buildID 2002-05-12-20-XXPR1 ==> The cursive font shows up bold 

in macOS9.1 : buildID 2002-05-12-17-XXPR1 ==> the fantasy font shows up bold
Comment 12 Jacek Piskozub 2002-06-19 05:28:27 PDT
WFM. Everything look Ok with mozilla 1.0 on Win98.

I tested Lucida Handwriting as the comic font and Tempus Sans ITC as the fantasy
font.
Comment 13 Hixie (not reading bugmail) 2002-06-19 10:09:13 PDT
The point of this bug is that the Unix defaults aren't good, not that it doesn't
work if you override the defaults.
Comment 14 Bozhan Boiadzhiev 2003-01-30 02:53:40 PST
Created attachment 113088 [details]
diffrent rendering of same CSS

same CSS styles but mozilla renders them in diffrent ways
Comment 15 Skewer 2003-01-30 08:37:49 PST
Comment on attachment 113088 [details]
diffrent rendering of same CSS

Changing text/plain to text/html since it is clearly the latter.

However, this testcase is still invalid because you cannot put multiple font
names into one set of double quotes. Please refer to
<http://www.w3.org/TR/REC-CSS1#font-family> for the proper way to quote font
names.
Comment 16 Mark Purtill 2004-05-11 21:30:11 PDT
This still appears to be a problem with firefox-0.8, which doesn't have any GUI
method of changing the defaults.  (Should that be a separate bug?)
Comment 17 Frank Tang 2005-03-01 23:50:49 PST
what a hack. I have not touch mozilla code for 2 years. I didn't read these bugs
for 2 years. And they are still there. Just close them as won't fix to clean up.
Comment 18 Xanthor Sccas 2005-03-02 01:45:58 PST
(Why not just reassign ?)
Comment 19 Travis Chase 2005-03-02 03:27:09 PST
Mass Re-assigning bugs that Frank Tang Closed on March 1st Spam is his fault

Mass Re-Open to follow
Comment 20 Travis Chase 2005-03-02 03:36:50 PST
Mass Bug Re-Open of bugs Frank Tang Closed with no good reason. Spam is his
fault not my own
Comment 21 Travis Chase 2005-03-02 05:59:52 PST
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Comment 22 Ed Morley [:emorley] 2011-01-02 15:59:15 PST
*** Bug 622179 has been marked as a duplicate of this bug. ***
Comment 23 HalloDuDaxx 2011-01-03 02:47:52 PST
Also in the new Firefox 3.6.13 the old rendering-problem of cursive (and fantasy, too) font-families on a Linux-system stays alive.
Comment 24 OutOfLinn 2011-01-03 04:51:14 PST
Today is January the 3th in the year 2011. Iam using Firefox 3.6.9 on Ubuntu 10.04 with Linux Kernel 2.6.32. The font "URW Chancery L" is installed and works fine. The following css definition:

.name_produkt {font-family:Monotype Corsiva,'Monotype Corsiva','Apple Chancery','ITC Zapf Chancery','URW Chancery L',cursive; letter-spacing:90%;font-size:150%; color:#000066;}

will be rendered with the default sans-serif font (???)

I cannot believe that a full-featured browser like Firefox does not handle such an easy job. Perhaps Opera will make it better...
Comment 25 Discoverer_of_slowness 2011-01-03 05:22:58 PST
In my opinion complicated bugs like this need more time to fix.
Please don't panic!
Comment 26 Aurélio A. Heckert 2012-02-08 08:32:11 PST
Still not working on FF 10.0. I think we must be in panic. :-(
Comment 27 Camilo Viecco (:cviecco) 2012-03-29 09:10:50 PDT
While playing around with generic fonts, I notices that URW Chancery only gets rendered (in ubuntu 11.10) if you also set the font style to itallic.  Font-config also shows the font as itallic. 
$ fc-list |grep URW |grep Chancery
URW Chancery L:style=Medium Italic

Just another data point (before I forget)
Comment 28 Gérard Talbot 2012-07-24 22:39:53 PDT
There is a CSS validation error in the test of attachment 35360 [details] , although it should not interfere with the test.

My test:

http://www.gtalbot.org/BrowserBugsSection/MozillaBugs/Bug47752-cursive-fantasy-rendered-as-sans-serif.html

Opera 12.0 and Konqueror 4.8.4 pass this test.

Firefox 14.0.1 and Chrome 20.0.1132.57 fail this test.

I have set URW Chancery L font for cursive and Purisa font for fantasy.

Linux Kubuntu KDE 4.8.4, 
kernel 3.2.0-27-generic-pae (i686, 32bits)
here.

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


(In reply to OutOfLinn from comment #24)

> Iam using Firefox 3.6.9 on Ubuntu
> 10.04 with Linux Kernel 2.6.32. The font "URW Chancery L" is installed and
> works fine. The following css definition:
> 
> .name_produkt {font-family:Monotype Corsiva,'Monotype Corsiva','Apple
> Chancery','ITC Zapf Chancery','URW Chancery L',cursive;
> letter-spacing:90%;font-size:150%; color:#000066;}
> 
> will be rendered with the default sans-serif font (???)

I got intrigued by your comment and made more tests and there is definitely an issue. A simple h1 {font-family: "URW Chancery L";} test:

http://www.gtalbot.org/BrowserBugsSection/MozillaBugs/OutOfLinnBug47752-cursive-test.html

Opera 12, Chrome 20.0.1132.57 and Konqueror 4.8.4 pass this test.

Firefox 14.0.1 fails this test.



I think people commenting in this bug report should try to understand that, from an outside perspective, it may seem that this bug should be easy to fix but, from the inside, it may be a lot more difficult to fix; eg bugs that require module rewrites are not easy and not simple to fix.

Gérard
Comment 29 David Baron :dbaron: ⌚️UTC-10 2012-07-24 23:14:07 PDT
(In reply to Gérard Talbot from comment #28)
> I think people commenting in this bug report should try to understand that,
> from an outside perspective, it may seem that this bug should be easy to fix
> but, from the inside, it may be a lot more difficult to fix; eg bugs that
> require module rewrites are not easy and not simple to fix.

That's not the case here.

The underlying problems here are:
 * it's not clear what good defaults for cursive and fantasy would be, across different scripts (Latin, Cyrillic, Greek, Arabic, Hebrew, Chinese, etc.) and operating systems (though this bug is primarily about Linux or other X11-based desktops), since the categories are large and widely varying -- or, for that matter, why an author would choose such a default (which ought to help us choose them)
 * (indirectly related to this bug, but not directly related) it's not clear why we should complicate the browser UI with mechanisms for changing these defaults when the number of pages that would be affected by such defaults is so small

The main work to be done here is to do research on the first point and figure out what the commonly installed fantasy and cursive fonts across distros and across scripts are and which ones would make sense as the defaults.
Comment 30 Gérard Talbot 2012-07-25 09:53:30 PDT
(In reply to David Baron [:dbaron] from comment #29)
> The main work to be done here is to do research on the first point and
> figure out what the commonly installed fantasy and cursive fonts across
> distros and across scripts are and which ones would make sense as the
> defaults.


Most common cursive fonts on Linux to 5 April 2012 
Font name 	Installed (%) 
URW Chancery L	99.01%
Comic Sans MS	68.44%
Purisa	        63.70%
Vemana2000	62.38%
Domestic Manners12.80%	

http://www.codestyle.org/css/font-family/sampler-Cursive.shtml

Most common fantasy fonts on Linux to 5 April 2012 
Font name 	Installed (%)
Impact	        68.84%	
Penguin Attack	10.41%
Balker	        9.98%	
Marked Fool	9.98%
Junkyard	9.54%
Linux Biolinum O8.75%
http://www.codestyle.org/css/font-family/sampler-Fantasy.shtml


Complete Guide to Pre-Installed Fonts in Linux (only Ubuntu), Mac, and Windows
by Megan McDermott, 19 March 2012
http://www.apaddedcell.com/web-fonts/

"
Ubuntu is used as a sample Gnu/Linux operating system. Other distributions may have different fonts installed.
"

http://www.apaddedcell.com/sites/www.apaddedcell.com/files/fonts-article/final/index.html

"URW Chancery L" as a cursive font is installed in Ubuntu 11.10 and 12.04 and in Kubuntu 12.04. And h1 {font-family: "URW Chancery L";} fails in Firefox 14.0.1.

Gérard
Comment 31 Gérard Talbot 2012-07-25 10:01:12 PDT
Reposting this because there were anchors (better linking)

Most common cursive fonts on Linux to 5 April 2012 
Font name 	Installed (%) 
URW Chancery L	99.01%
Comic Sans MS	68.44%
Purisa	        63.70%
Vemana2000	62.38%
Domestic Manners12.80%	

http://www.codestyle.org/css/font-family/sampler-Cursive.shtml#cursive-linux



Most common fantasy fonts on Linux to 5 April 2012 
Font name 	Installed (%)
Impact	        68.84%	
Penguin Attack	10.41%
Balker	        9.98%	
Marked Fool	9.98%
Junkyard	9.54%
Linux Biolinum O8.75%
http://www.codestyle.org/css/font-family/sampler-Fantasy.shtml#fantasy-linux

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