Last Comment Bug 632787 - Font Family Ignored in <LI>
: Font Family Ignored in <LI>
Status: RESOLVED INVALID
: regression
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: Trunk
: x86_64 Windows 7
: -- major (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-09 05:40 PST by FavBrowser
Modified: 2013-12-27 14:37 PST (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
sample html (129 bytes, text/html)
2011-02-09 06:11 PST, Alice0775 White
no flags Details
font properties (15.84 KB, image/png)
2011-02-09 06:31 PST, Alice0775 White
no flags Details

Description FavBrowser 2011-02-09 05:40:06 PST
User-Agent:       Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01
Build Identifier: 4.0b11

Firefox 4 ignores font family in LI UL if font name is more than 1 word

Arial Black
Arial Narrow

etc.

Same when using web fonts.

Reproducible: Always

Steps to Reproduce:
1. Use code

ul {
    font-family: "Arial Narrow";
}

2. <ul><li>example</li></ul>
3. Cahnge font to Arial, works fine.
Actual Results:  
Ignores font family, picks default font

Expected Results:  
Font should be changed to Arial Narrow
Comment 1 Alice0775 White 2011-02-09 06:11:06 PST
Confirmed on 
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110208 Firefox/4.0b12pre ID:20110208030358

It works if disabled hardware acceleration(gfx.direct2d.disabled;true)
Comment 2 Alice0775 White 2011-02-09 06:11:31 PST
Created attachment 511014 [details]
sample html
Comment 3 Jonathan Kew (:jfkthame) 2011-02-09 06:19:32 PST
I don't have Arial Narrow on my Win7 machine, but I doubt this is specific to the HTML elements mentioned; rather, it is probably that "Arial Black" and "Arial Narrow" are not recognized as font families under DirectWrite, but are treated as additional members of the Arial family. To access these faces, use font-family: Arial together with appropriate font-weight and font-stretch properties.
Comment 4 FavBrowser 2011-02-09 06:21:58 PST
(In reply to comment #3)
> I don't have Arial Narrow on my Win7 machine, but I doubt this is specific to
> the HTML elements mentioned; rather, it is probably that "Arial Black" and
> "Arial Narrow" are not recognized as font families under DirectWrite, but are
> treated as additional members of the Arial family. To access these faces, use
> font-family: Arial together with appropriate font-weight and font-stretch
> properties.

Impossible to make Arial look exact like Arial Narrow, it works with all other web browsers and should be fixed.
Comment 5 Robert Longson 2011-02-09 06:24:09 PST
DirectWrite does not work with bitmapped fonts. Does Arial Narrow fall into that category?
Comment 6 Alice0775 White 2011-02-09 06:31:44 PST
Created attachment 511020 [details]
font properties
Comment 7 Jonathan Kew (:jfkthame) 2011-02-09 07:23:36 PST
You should be able to access Arial Narrow using

  font-family: Arial;
  font-stretch: condensed;

in your CSS. Assuming that works, this is correct behavior under the DirectWrite font model, which is no longer limited to GDI's idea of "families".
Comment 8 FavBrowser 2011-02-09 07:37:09 PST
It works, thank you
Comment 9 John Daggett (:jtd) 2011-02-10 23:52:19 PST
Marking as invalid.  Reopen if you still feel there's a problem.

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