WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15571
SVG text needs to support textLength/lengthAdjust properties & 'kerning'
https://bugs.webkit.org/show_bug.cgi?id=15571
Summary
SVG text needs to support textLength/lengthAdjust properties & 'kerning'
Nikolas Zimmermann
Reported
2007-10-20 01:53:39 PDT
Advanced SVG text support defines a way to expand/contract text (normal text as well as textPath) based on the textLength property. lengthAdjust="spacing" and ie. textLength="200" forces the text to be exactly 200px wide, while this is achieved through the letter-spacing modification. For lengthAdjust="spacingAndGlyphs" the whole set of glyphs is expanded/contracted. This requires that our SVG text implementation handles letter & word spacing, as well as 'kerning' before - so our absolute positioned SVG glyphs take the spacing into account at layout time, instead of paint time (basically SVG needs to disable spacing functionality of platform/Font.cpp) to be able to properly take into account spacing when implementing lengthAdjust.
Attachments
Initial patch
(31.25 KB, patch)
2007-10-20 02:05 PDT
,
Nikolas Zimmermann
oliver
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Nikolas Zimmermann
Comment 1
2007-10-20 02:05:47 PDT
Created
attachment 16741
[details]
Initial patch Support all textLength/lengthAdjust combinations on normal text & textPaths.
Nikolas Zimmermann
Comment 2
2007-10-20 03:48:20 PDT
Landed in
r26819
.
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