Closed Bug 420675 Opened 16 years ago Closed 16 years ago

bolding 500 weight text on Windows

Categories

(Core :: Graphics, defect, P2)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jtd, Assigned: pavlov)

References

Details

(Keywords: regression)

Attachments

(5 files, 1 obsolete file)

Looks like we're bolding text in the situation where a regular weight (400) and bold weight (700) face exist.  By CSS rules, in this situation 500 should map to 400, 600 should map to 700.  FF2, IE, Safari all render this way.
Flags: blocking1.9?
First set of text lines render Times Roman at weights 100 - 900.  The plain/bold transition on Windows occurs at weight 500 instead of 600 as expected.
Priority: -- → P3
Over to Stuart, unless this is more up your alley John?
Assignee: nobody → pavlov
Flags: blocking1.9? → blocking1.9+
Priority: P3 → P2
Attached patch fix?Splinter Review
this one adds support for using the magic synthetic bold that windows provides for font weight of 600.  i'm not sure this is better in all cases, but doesn't seem horrible.
Attached patch alternate fix (obsolete) — Splinter Review
this one just special cases 500 and makes it be 400 if it doesn't exist.
Attachment #309273 - Flags: review?
Comment on attachment 309273 [details] [diff] [review]
alternate fix

Isn't dc null there?  It seems like the loop sets it up if it needs a dc.
Attachment #309273 - Attachment is obsolete: true
Attachment #309304 - Flags: review?(vladimir)
Attachment #309273 - Flags: review?
Comment on attachment 309304 [details] [diff] [review]
fix that checks the dc.

looks fine, could also use a goto instead of adding another nested if ()
Attachment #309304 - Flags: review?(vladimir) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008031905 Minefield/3.0b5pre. I used the testcase in Comment 1 to verify.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: