Closed
Bug 366870
Opened 18 years ago
Closed 18 years ago
font/glyph selection test
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: vlad, Assigned: vlad)
References
Details
Attachments
(1 file, 2 obsolete files)
31.28 KB,
patch
|
pavlov
:
review+
|
Details | Diff | Splinter Review |
Here's my take on adding a test for font/glyph selection so that we can create a comprehensive test suite for this stuff. See the docs in gfxFontSelectionTests.h on information on how to add tests.
Attachment #251326 -
Flags: review?(pavlov)
Comment 1•18 years ago
|
||
You don't need to reget the unique name in gfxAtsuiFont. Because the postscript name is already cached in memory. You can get the cache from |gfxQuartzFontCache::mFontIDTable| by fontID.
Assignee | ||
Comment 2•18 years ago
|
||
Updated patch; implements win32 and mac. Patch is missing: - support for win32 fast paths - linux hooks I'd like to get this checked in as-is and do the above two separately, since I think this stuff is pretty solid.
Assignee: nobody → vladimir
Attachment #251326 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #251970 -
Flags: review?(pavlov)
Attachment #251326 -
Flags: review?(pavlov)
Assignee | ||
Comment 3•18 years ago
|
||
Updated with comments.
Attachment #251970 -
Attachment is obsolete: true
Attachment #251987 -
Flags: review?(pavlov)
Attachment #251970 -
Flags: review?(pavlov)
Comment 4•18 years ago
|
||
Comment on attachment 251987 [details] [diff] [review] updated as per comments + // append the weight code + if (mLogFont.lfWeight != 400) { + if (mLogFont.lfWeight == 700) { + uniqueName.AppendLiteral(":Bold"); + } else { + uniqueName.AppendLiteral(":"); + uniqueName.AppendInt(mLogFont.lfWeight); + } + } i'm not sure you really want this code.. i think you're going to be better off just appending the lfWeight and not trying to special case 700. fonts are funny about which weights they actually support.
Updated•18 years ago
|
Attachment #251987 -
Flags: review?(pavlov) → review+
Assignee | ||
Comment 5•18 years ago
|
||
Checked in; filed bug 367553 for adding the boilerplate to gfxPango* to make it work on linux.
Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•