Closed Bug 454720 Opened 16 years ago Closed 16 years ago

Add GetThebesStyle and GetThebesWeight to gfxFontconfigUtils

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: karlt, Assigned: karlt)

References

Details

Attachments

(1 file)

      No description provided.
Attached patch patchSplinter Review
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.
Attachment #338021 - Flags: review?(pavlov) → review+
http://hg.mozilla.org/mozilla-central/rev/1aecd2a9914d
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.