Add GetThebesStyle and GetThebesWeight to gfxFontconfigUtils

RESOLVED FIXED in mozilla1.9.1b1

Status

()

Core
Graphics
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: karlt, Assigned: karlt)

Tracking

Trunk
mozilla1.9.1b1
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Comment hidden (empty)
(Assignee)

Comment 1

9 years ago
Created attachment 338021 [details] [diff] [review]
patch

I wrote these for bug 385263, but the FT2 code might as well also use the
weight translation.  The FT2 code doesn't know the difference between oblique
and italic yet so I haven't changed it to use the style calculation.

I think the use of ranges rather than a case statement and rough estimate is
safer against new fontconfig predefined weights and other possible values from
fontconfig settings.  FontFamily::FindFontEntry in gfxFT2Fonts.cpp will
truncate the 901 to 9 (and doesn't check that the result is within array
bounds).
Attachment #338021 - Flags: review?(roc)
Attachment #338021 - Flags: review?(roc) → review?(pavlov)
Comment on attachment 338021 [details] [diff] [review]
patch

I think Stuart needs to review this.

Updated

9 years ago
Attachment #338021 - Flags: review?(pavlov) → review+
(Assignee)

Comment 3

9 years ago
http://hg.mozilla.org/mozilla-central/rev/1aecd2a9914d
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Assignee)

Updated

9 years ago
Target Milestone: --- → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.