Closed Bug 366870 Opened 18 years ago Closed 18 years ago

font/glyph selection test

Categories

(Core :: Graphics, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch font/glyph selection test (obsolete) — 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)
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.
Attached patch updated patch (obsolete) — Splinter Review
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)
Updated with comments.
Attachment #251970 - Attachment is obsolete: true
Attachment #251987 - Flags: review?(pavlov)
Attachment #251970 - Flags: review?(pavlov)
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.
Attachment #251987 - Flags: review?(pavlov) → review+
Checked in; filed bug 367553 for adding the boilerplate to gfxPango* to make it work on linux.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Depends on: 367566
Depends on: 367742
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: