Fill Path renders differently on win/mac


#1

Look at the attachment, the red line is the path (strokePath), the yellow area (fillPath) is incomplete.

On mac it works correct.

This is the output of path.toString()


m 0.5 98.028 l 1.5 97.456 2.5 96.868 3.5 96.265 4.5 95.646 5.5 95.011 6.5 94.358 7.5 93.689 8.5 93.001 9.5 92.294 10.5 91.569 11.5 90.824 12.5 90.059 13.5 89.273 14.5 88.466 15.5 87.637 16.5 86.785 17.5 85.91 18.5 85.011 19.5 84.087 20.5 83.138 21.5 82.162 22.5 81.16 23.5 80.13 24.5 79.072 25.5 77.984 26.5 76.868 27.5 75.721 28.5 74.543 29.5 73.334 30.5 72.094 31.5 70.822 32.5 69.519 33.5 68.185 34.5 66.82 35.5 65.427 36.5 64.005 37.5 62.559 38.5 61.091 39.5 59.605 40.5 58.108 41.5 56.605 42.5 55.105 43.5 53.62 44.5 52.161 45.5 50.743 46.5 49.385 47.5 48.105 48.5 46.925 49.5 45.868 50.5 44.958 51.5 44.216 52.5 43.664 53.5 43.315 54.5 43.182 55.5 43.268 56.5 43.571 57.5 44.081 58.5 44.783 59.5 45.659 60.5 46.686 61.5 47.841 62.5 49.101 63.5 50.445 64.5 51.851 65.5 53.302 66.5 54.784 67.5 56.281 68.5 57.784 69.5 59.284 70.5 60.772 71.5 62.244 72.5 63.696 73.5 65.123 74.5 66.522 75.5 67.893 76.5 69.234 77.5 70.544 78.5 71.823 79.5 73.07 80.5 74.285 81.5 75.47 82.5 76.623 83.5 77.746 84.5 78.84 85.5 79.904 86.5 80.94 87.5 81.948 88.5 82.93 89.5 83.885 90.5 84.814 91.5 85.718 92.5 86.599 93.5 87.456 94.5 88.29 95.5 89.102 96.5 89.892 97.5 90.661 98.5 91.411 99.5 92.14 100.5 92.85 101.5 93.542 102.5 94.216 103.5 94.872 104.5 95.511 105.5 96.133 106.5 96.74 107.5 97.331 108.5 97.906 109.5 98.467 110.5 99.013 111.5 99.545 112.5 100.064 113.5 100.569 114.5 101.061 115.5 101.541 116.5 102.008 117.5 102.464 118.5 102.908 119.5 103.34 120.5 103.762 121.5 104.173 122.5 104.573 123.5 104.963 124.5 105.343 125.5 105.714 126.5 106.075 127.5 106.427 128.5 106.769 129.5 107.103 130.5 107.429 131.5 107.746 132.5 108.055 133.5 108.356 134.5 108.65 135.5 108.936 136.5 109.215 137.5 109.486 138.5 109.751 139.5 110.008 140.5 110.259 141.5 110.504 142.5 110.742 143.5 110.975 144.5 111.201 145.5 111.421 146.5 111.636 147.5 111.845 148.5 112.049 149.5 112.247 150.5 112.44 151.5 112.628 152.5 112.812 153.5 112.99 154.5 113.164 155.5 113.334 156.5 113.499 157.5 113.659 158.5 113.816 159.5 113.968 160.5 114.116 161.5 114.261 162.5 114.401 163.5 114.538 164.5 114.672 165.5 114.802 166.5 114.928 167.5 115.051 168.5 115.171 169.5 115.288 170.5 115.401 171.5 115.512 172.5 115.619 173.5 115.724 174.5 115.826 175.5 115.925 176.5 116.022 177.5 116.116 178.5 116.208 179.5 116.297 180.5 116.384 181.5 116.468 182.5 116.55 183.5 116.63 184.5 116.708 185.5 116.784 186.5 116.858 187.5 116.929 188.5 116.999 189.5 117.067 190.5 117.133 191.5 117.198 192.5 117.26 193.5 117.321 194.5 117.38 195.5 117.438 196.5 117.494 197.5 117.549 198.5 117.602 199.5 117.654 200.5 117.704 201.5 117.753 202.5 117.801 203.5 117.847 204.5 117.892 205.5 117.936 206.5 117.979 207.5 118.02 208.5 118.061 209.5 118.1 210.5 118.138 211.5 118.176 212.5 118.212 213.5 118.247 214.5 118.281 215.5 118.315 216.5 118.347 217.5 118.379 218.5 118.409 219.5 118.439 220.5 118.468 221.5 118.497 222.5 118.524 223.5 118.551 224.5 118.577 225.5 118.602 226.5 118.627 227.5 118.651 228.5 118.674 229.5 118.697 230.5 118.719 231.5 118.74 232.5 118.761 233.5 118.781 234.5 118.801 235.5 118.82 236.5 118.839 237.5 118.857 238.5 118.875 239.5 118.892 240.5 118.908 241.5 118.925 242.5 118.94 243.5 118.956 244.5 118.971 245.5 118.985 246.5 119 247.5 119.013 248.5 119.027 249.5 119.04 250.5 119.052 251.5 119.065 252.5 119.077 253.5 119.088 254.5 119.1 255.5 119.111 256.5 119.121 257.5 119.132 258.5 119.142 259.5 119.152 260.5 119.161 261.5 119.171 262.5 119.18 263.5 119.188 264.5 119.197 265.5 119.205 266.5 119.214 267.5 119.221 268.5 119.229 269.5 119.237 270.5 119.244 271.5 119.251 272.5 119.258 273.5 119.264 274.5 119.271 275.5 119.277 276.5 119.283 277.5 119.289 278.5 119.295 279.5 119.301 280.5 119.306 281.5 119.312 282.5 119.317 283.5 119.322 284.5 119.327 285.5 119.332 286.5 119.336 287.5 119.341 288.5 119.345 289.5 119.349 290.5 119.354 291.5 119.358 292.5 119.362 293.5 119.365 294.5 119.369 295.5 119.373 296.5 119.376 297.5 119.38 298.5 119.383 299.5 119.386 300.5 119.389 301.5 119.392 302.5 119.395 303.5 119.398 304.5 119.401 305.5 119.404 306.5 119.407 307.5 119.409 308.5 119.412 309.5 119.414 310.5 119.416 311.5 119.419 312.5 119.421 313.5 119.423 314.5 119.425 315.5 119.427 316.5 119.429 317.5 119.431 318.5 119.433 319.5 119.435 320.5 119.437 321.5 119.439 322.5 119.44 323.5 119.442 324.5 119.444 325.5 119.445 326.5 119.447 327.5 119.448 328.5 119.45 329.5 119.451 330.5 119.452 331.5 119.454 332.5 119.455 333.5 119.456 334.5 119.458 335.5 119.459 336.5 119.46 337.5 119.461 338.5 119.462 339.5 119.463 340.5 119.464 341.5 119.465 342.5 119.466 343.5 119.467 344.5 119.468 345.5 119.469 346.5 119.47 347.5 119.471 348.5 119.471 349.5 119.472 350.5 119.473 351.5 119.474 352.5 119.475 353.5 119.475 354.5 119.476 355.5 119.477 356.5 119.477 357.5 119.478 358.5 119.479 359.5 119.479 360.5 119.48 361.5 119.48 362.5 119.481 363.5 119.481 364.5 119.482 365.5 119.483 366.5 119.483 367.5 119.483 368.5 119.484 369.5 119.484 370.5 119.485 371.5 119.485 372.5 119.486 373.5 119.486 374.5 119.487 375.5 119.487 376.5 119.487 377.5 119.488 378.5 119.488 379.5 119.488 380.5 119.489 381.5 119.489 382.5 119.489 383.5 119.49 384.5 119.49 385.5 119.49 386.5 119.491 387.5 119.491 388.5 119.491 389.5 119.491 390.5 119.492 391.5 119.492 392.5 119.492 393.5 119.492 394.5 119.493 395.5 119.493 396.5 119.493 397.5 119.493 398.5 119.493 399.5 119.494 400.5 119.494 401.5 119.494 402.5 119.494 403.5 119.494 404.5 119.495 405.5 119.495 406.5 119.495 407.5 119.495 408.5 119.495 409.5 119.495 410.5 119.495 411.5 119.496 412.5 119.496 413.5 119.496 414.5 119.496 415.5 119.496 416.5 119.496 417.5 119.496 418.5 119.496 419.5 119.497 420.5 119.497 421.5 119.497 422.5 119.497 423.5 119.497 424.5 119.497 425.5 119.497 426.5 119.497 427.5 119.497 428.5 119.498 429.5 119.498 430.5 119.498 431.5 119.498 432.5 119.498 433.5 119.498 434.5 119.498 435.5 119.498 436.5 119.498 437.5 119.498 438.5 119.498 439.5 119.498 440.5 119.498 441.5 119.498 442.5 119.499 443.5 119.499 444.5 119.499 445.5 119.499 446.5 119.499 447.5 119.499 448.5 119.499 449.5 119.499 450.5 119.499 451.5 119.499 452.5 119.499 453.5 119.499 454.5 119.499 455.5 119.499 456.5 119.499 457.5 119.499 458.5 119.499 459.5 119.499 460.5 119.499 461.5 119.499 462.5 119.499 463.5 119.499 464.5 119.499 465.5 119.499 466.5 119.499 467.5 119.5 468.5 119.5 469.5 119.5 470.5 119.5 471.5 119.5 472.5 119.5 473.5 119.5 474.5 119.5 475.5 119.5 476.5 119.5 477.5 119.5 478.5 119.5 479.5 119.5 480.5 119.5 481.5 119.5 482.5 119.5 483.5 119.5 484.5 119.5 485.5 119.5 486.5 119.5 487.5 119.5 488.5 119.5 489.5 119.5 490.5 119.5 491.5 119.5 492.5 119.5 493.5 119.5 494.5 119.5 495.5 119.5 496.5 119.5 497.5 119.5 498.5 119.5 499.5 119.5 500.5 119.5 501.5 119.5 502.5 119.5 0.5 119.5 m 0 0


#2

oooops, i didn't closed the subpath, so my fault, but maybe its interesting too for you....