Closed Bug 675656 Opened 14 years ago Closed 14 years ago

@font-face syntax does not respect font-style or font-weight

Categories

(Firefox :: General, defect)

5 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 530527

People

(Reporter: santhosh.thottingal, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Iceweasel/5.0 Build ID: 20110715103921 Steps to reproduce: Wrote a page with @font-face font emebdding css with font-style, font-weight, font-size attributes. The page is here http://thottingal.in/bugs/fontface/fontface-fontsizetest.html The used css is @font-face { font-family: "RufScript"; src: url("Rufscript.ttf"); font-style: italic; font-weight: bold; font-size: 2em; } Actual results: http://thottingal.in/bugs/fontface/fontface-fontsizetest.html shows that none of the attributes from @font-face are getting effected. Font embedding works, but font is not bold or italic or with 2em size as given in css. Expected results: As per https://developer.mozilla.org/en/css/@font-face and as per http://www.w3.org/TR/css3-fonts/, @font-face css syntax should handle font-style, font-size, font-weight properties. The syntax given at developer.mozilla.org is this @font-face { font-family: <a-remote-font-name>; src: <source> [,<source>]*; [font-weight: <weight>]; [font-style: <style>]; } It is also mentioned in the example given there. But from my test, font-weight and font-style are not interpreted. Ofcourse I can use these properties in the style of a DIV or any other element. But as per standard, when these attributes are declared inside @fontface, it affects the default style of the font used anywhere in the page(at least that is how I understand it)
If the embedded font does not contain certain styles, those styles can't be displayed. I'm pretty sure other browsers (Safari, Goole Chrome, Opera, ...) do the same with your font.
See bug 530527 comment 1 for explanation.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Summary: @fontface syntax does not respect font-style or font-weight → @font-face syntax does not respect font-style or font-weight
You need to log in before you can comment on or make changes to this bug.