Bug 52985 - ttf2svg fails to reproduce "e" and "o" correctly in Delius-Regular.ttf
ttf2svg fails to reproduce "e" and "o" correctly in Delius-Regular.ttf
Status: NEW
Product: Batik - Now in Jira
Classification: Unclassified
Component: Utilities
1.8
Macintosh All
: P2 normal
: ---
Assigned To: Batik Developer's Mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-03-26 04:44 UTC by Johan Sundström
Modified: 2012-03-26 04:45 UTC (History)
0 users



Attachments
Large-size example "oe" svg rendition from batik (buggy). (977 bytes, image/svg+xml)
2012-03-26 04:44 UTC, Johan Sundström
Details
Large-size example "oe" reference svg rendition from font2web (correct). (1.68 KB, image/svg+xml)
2012-03-26 04:45 UTC, Johan Sundström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Sundström 2012-03-26 04:44:28 UTC
Created attachment 28507 [details]
Large-size example "oe" svg rendition from batik (buggy).

Steps to reproduce:

Download Delius-Regular.ttf from http://www.dafont.com/delius.font

Convert it to svg with batik-ttf2svg.jar (I used the Mac build shipping with Squiggle below):

java -jar /Applications/Squiggle.app/Contents/Resources/batik-ttf2svg.jar DeliusRegular.ttf -id Delius -testcard -o Delius.svg

The output font now has two sharp edges on the lowercase "e" and "o" characters.

    <glyph unicode="e" glyph-name="e" horiz-adv-x="539" d="M338 269T378 292T419 354T393 421T317 450Q251 450 206 401T148 285Q203 269 270 269ZM389 515T439 470T490 353T428 244T274 206Q222 206 147 221Q153 151 199 101T303 50Q337 50 366 59T410 80Q450 111 462 111T482 104T490 85Q490 57 433 21T308 -15Q204 -15 143 58T77 234Q24 250 24 286Q24 301 32 309T53 318T83 309Q105 399 166 457T308 515Z"/>
    <glyph unicode="o" glyph-name="o" horiz-adv-x="562" d="M445 168T445 251T399 392T283 450T166 391T117 249T163 108T279 50T396 109ZM384 515T450 439T516 251T449 63T280 -15T112 61T46 249T112 437T281 515Z"/>

When rendering the same font to svg with font2web.com, they do not:

    <glyph glyph-name="e" unicode="e" horiz-adv-x="539" d="M378.5 292c27 15.333 40.501 36 40.501 62s-8.83301 48.5 -26.5 67.5s-42.834 28.5 -75.501 28.5c-44 0 -81 -16.5 -111 -49.5s-49.333 -71.5 -58 -115.5c36.667 -10.667 77.5 -16 122.5 -16s81 7.66699 108 23zM439.501 470c33.667 -30 50.5 -68.999 50.5 -116.999 s-20.833 -84.5 -62.5 -109.5s-92.834 -37.5 -153.501 -37.5c-34.667 0 -77 5 -127 15c4 -46.667 21.5 -86.834 52.5 -120.501s65.5 -50.5 103.5 -50.5c22.667 0 43.667 3.16699 63 9.5s34 13.166 44 20.499c26.667 20.667 44.167 31 52.5 31s15 -2.5 20 -7.5 s7.5 -11.167 7.5 -18.5c0 -18.667 -19.167 -40 -57.5 -64s-79.833 -36 -124.5 -36c-69.333 0 -124.333 24.333 -165 73s-62.667 107.334 -66 176.001c-35.333 10.667 -53 28 -53 52c0 10 2.83301 17.833 8.5 23.5s12.5 8.5 20.5 8.5s18 -3 30 -9 c14.667 60 42.5 109.333 83.5 148s88.333 58 142 58s97.334 -15 131.001 -45z"/>
    <glyph glyph-name="o" unicode="o" horiz-adv-x="562" d="M445 251c0 55.333 -15.5 102.333 -46.5 141s-69.5 58 -115.5 58s-85.167 -19.667 -117.5 -59s-48.5 -86.666 -48.5 -141.999s15.5 -102.333 46.5 -141s69.5 -58 115.5 -58s85.167 19.667 117.5 59s48.5 86.666 48.5 141.999zM450 438.5 c44 -51 66.001 -113.5 66.001 -187.5s-22.333 -136.833 -67 -188.5s-101 -77.5 -169 -77.5s-124 25.5 -168 76.5s-66 113.5 -66 187.5s22.167 136.833 66.5 188.5s100.666 77.5 168.999 77.5s124.5 -25.5 168.5 -76.5z"/>
Comment 1 Johan Sundström 2012-03-26 04:45:29 UTC
Created attachment 28508 [details]
Large-size example "oe" reference svg rendition from font2web (correct).