Summary: | Add TextRun to the text drawing/measuring APIs. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dave Hyatt <hyatt> | ||||||
Component: | Layout and Rendering | Assignee: | Dave Hyatt <hyatt> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Dave Hyatt
2006-05-11 02:33:43 PDT
Created attachment 8234 [details]
Patch.
Created attachment 8235 [details]
Patch that fixes up FontWin as well.
Comment on attachment 8235 [details]
Patch that fixes up FontWin as well.
r=me
(In reply to comment #2) > Created an attachment (id=8235) [edit] UChar spacePeriod[2] = { '.', ' ' }; - int width = font.width(spacePeriod, 2); - p->drawText(marker.location(), " ."); - p->drawText(marker.location() + IntSize(width, 0), m_item); + TextRun spacePeriodRun(spacePeriod, 2); Looks like spacePeriod should be { ' ', '.' } (didn't matter before when it was only used for measuring). Can you check fast/lists in pixel mode? Thanks mitz. I fixed it. Fixed. |