Closed
Bug 324611
Opened 19 years ago
Closed 19 years ago
Bold is not bold in Cairo (<b> and <strong> tags don't work)
Categories
(Core :: Graphics, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: ria.klaassen, Assigned: pavlov)
References
()
Details
(Keywords: testcase)
Attachments
(3 files, 2 obsolete files)
For some reason Cairo displays bold text as normal text.
It doesn't react to <b></b>
<b><img src="/img/pijl_trans.gif" alt="" border="0" height="9" hspace="4" vspace="0" width="4">
<a class="link" href="/news/662409/10/Ongevallen_door_spekgladde_wegen.html">
Ongevallen door spekgladde wegen</a>
</b>
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Attachment #209809 -
Attachment is obsolete: true
Comment 3•19 years ago
|
||
It also doesnt react to the <strong> tag. Another thing: your second testcase actually shows bold text while everything else isn't.
Comment 4•19 years ago
|
||
testcase with <b> and <strong> tag
Attachment #209810 -
Attachment is obsolete: true
Updated•19 years ago
|
Summary: Bold is not bold in Cairo → <b> and <strong> tags don't work
Reporter | ||
Comment 5•19 years ago
|
||
Please don't change the summary so drastically. Want to be able to recognize my own bugs. Thanks.
Summary: <b> and <strong> tags don't work → Bold is not bold in Cairo (<b> and <strong> tags don't work)
Comment 6•19 years ago
|
||
Ria, <span style="font-weight:bold"> ... </span> works fine in Cairo builds so the current discription leaves room for misinterpretation.
That's why I changed it.
Reporter | ||
Comment 7•19 years ago
|
||
The first two lines of comment #0 leave no room for misunderstanding.
There are no other bugs about bold text in Cairo. Editing the summary was not necessary. But thanks for the effort anyway.
Comment 8•19 years ago
|
||
temporary hack to get the bold letters:
add the following lines to userContent.css
b, strong {
font-weight:bold !important;
}
Comment 9•19 years ago
|
||
Firefox/Cairo does not seem to be able to understand "font-size:bolder"
(The default font-weight for <b> and <strong> is "bolder", not "bold".)
Comment 10•19 years ago
|
||
(In reply to comment #9)
> Created an attachment (id=213305) [edit]
> testcase normal/bold/bolder
>
> Firefox/Cairo does not seem to be able to understand "font-size:bolder"
>
> (The default font-weight for <b> and <strong> is "bolder", not "bold".)
>
read:
http://www.mozilla.org/newlayout/testcases/css/fontproperties.html
Comment 11•19 years ago
|
||
(In reply to comment #9)
> Firefox/Cairo does not seem to be able to understand "font-size:bolder"
Sorry, I meant "font-weight:bolder;"
Some other strage things:
font-weight:900 works
So the rendeing engine _can_ draw it.
font-weight:bolder in a font-weight:bold span is bold
If this would be a rendeing problem then probably there would be an normal unbold text.
So I suppose the bug is somewhere in the CSS-Parser or so and for some strange reason font-weight:bolder is ignored. When ispecting a font-weight:bolder span with DOMI, it says in the computed style "font-weight:401". That seems to be very stange abecause a bold text (not bolder) has really has "bold" as value in DOMI and 401 is a value that is even lighter than normal. (500 is default, 100 is very light, 900 is very bold).
Assignee | ||
Updated•19 years ago
|
Assignee: nobody → pavlov
Assignee | ||
Comment 12•19 years ago
|
||
this should fix most of the bold problems. we need to do some global font cache thing on windows where we can cache this info so we don't have to GetTextMetrics, etc every time.
Attachment #213390 -
Flags: review?(vladimir)
Attachment #213390 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 13•19 years ago
|
||
i'm gonna say this is fixed.
Comment 14•19 years ago
|
||
All the testcases WFM and a few websites I tried.
Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
Comment 15•6 years ago
|
||
It also doesnt react to the <strong> tag. https://www.osteopaat-deklerk.nl/werkwijze
Flags: needinfo?(a.j.a.deklerk)
Comment 16•6 years ago
|
||
(In reply to Allie from comment #15)
It also doesnt react to the <strong> tag. https://www.osteopaat-deklerk.nl/werkwijze
Flags: needinfo?(a.j.a.deklerk)
You need to log in
before you can comment on or make changes to this bug.
Description
•