WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
8845
Add TextRun to the text drawing/measuring APIs.
https://bugs.webkit.org/show_bug.cgi?id=8845
Summary
Add TextRun to the text drawing/measuring APIs.
Dave Hyatt
Reported
2006-05-11 02:33:43 PDT
This patch basically takes the concept of WebCoreTextRun and lifts it up into the actual API used by WebCore.
Attachments
Patch.
(53.05 KB, patch)
2006-05-11 02:34 PDT
,
Dave Hyatt
no flags
Details
Formatted Diff
Diff
Patch that fixes up FontWin as well.
(58.82 KB, patch)
2006-05-11 02:46 PDT
,
Dave Hyatt
andersca
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2006-05-11 02:34:11 PDT
Created
attachment 8234
[details]
Patch.
Dave Hyatt
Comment 2
2006-05-11 02:46:02 PDT
Created
attachment 8235
[details]
Patch that fixes up FontWin as well.
Anders Carlsson
Comment 3
2006-05-11 03:00:22 PDT
Comment on
attachment 8235
[details]
Patch that fixes up FontWin as well. r=me
mitz
Comment 4
2006-05-11 03:01:41 PDT
(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?
Dave Hyatt
Comment 5
2006-05-11 03:07:13 PDT
Thanks mitz. I fixed it.
Dave Hyatt
Comment 6
2006-05-11 03:19:55 PDT
Fixed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug