Closed Bug 632787 Opened 13 years ago Closed 13 years ago

Font Family Ignored in <LI>

Categories

(Core :: Graphics, defect)

x86_64
Windows 7
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: theking, Unassigned)

Details

(Keywords: regression)

Attachments

(2 files)

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
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)
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Component: Style System (CSS) → Graphics
Ever confirmed: true
QA Contact: style-system → thebes
Version: unspecified → Trunk
Attached file sample html
Keywords: regression
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.
(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.
DirectWrite does not work with bitmapped fonts. Does Arial Narrow fall into that category?
Attached image font properties
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".
It works, thank you
Marking as invalid.  Reopen if you still feel there's a problem.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
blocking2.0: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: