diff --git a/examples/gradient.png b/examples/gradient.png index c14c7f86..50b867b0 100644 Binary files a/examples/gradient.png and b/examples/gradient.png differ diff --git a/examples/heart.png b/examples/heart.png index 968e9757..b7ca7052 100644 Binary files a/examples/heart.png and b/examples/heart.png differ diff --git a/examples/masking.png b/examples/masking.png index c95e421f..b508b070 100644 Binary files a/examples/masking.png and b/examples/masking.png differ diff --git a/examples/shadow.png b/examples/shadow.png index ef172e64..c222dd34 100644 Binary files a/examples/shadow.png and b/examples/shadow.png differ diff --git a/examples/text.png b/examples/text.png index e7b6f53d..100b2d2b 100644 Binary files a/examples/text.png and b/examples/text.png differ diff --git a/examples/text_spans.png b/examples/text_spans.png index 2f13dde5..320067cd 100644 Binary files a/examples/text_spans.png and b/examples/text_spans.png differ diff --git a/examples/tiger.png b/examples/tiger.png index 9946fb9d..0f6af192 100644 Binary files a/examples/tiger.png and b/examples/tiger.png differ diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 1bf9ff2a..638c1474 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1192,26 +1192,28 @@ proc computeCoverages( # Do scanlines for this row let partitionIndex = partitioning.getIndexForY(y) - var - yLine = y.float32 + initialOffset - offset - scanline = line(vec2(0, yLine), vec2(width, yLine)) + var yLine = y.float32 + initialOffset - offset for m in 0 ..< quality: yLine += offset - scanline.a.y = yLine - scanline.b.y = yLine numHits = 0 for i in 0 ..< partitioning.partitions[partitionIndex].len: # Perf let segment = partitioning.partitions[partitionIndex][i][0] winding = partitioning.partitions[partitionIndex][i][1] - if segment.at.y <= scanline.a.y and segment.to.y >= scanline.a.y: - var at: Vec2 - if scanline.intersects(segment, at): - if segment.to != at: - if numHits == hits.len: - hits.setLen(hits.len * 2) - hits[numHits] = (min(at.x, width), winding) - inc numHits + if segment.at.y <= yLine and segment.to.y >= yLine: + let x = + if segment.at.x - segment.to.x == 0: + segment.at.x + else: + let + m = (segment.at.y - segment.to.y) / (segment.at.x - segment.to.x) + b = segment.at.y - m * segment.at.x + (yLine - b) / m + + if numHits == hits.len: + hits.setLen(hits.len * 2) + hits[numHits] = (min(x, width), winding) + inc numHits sort(hits, 0, numHits - 1) diff --git a/tests/contexts/bezierCurveTo_1.png b/tests/contexts/bezierCurveTo_1.png index a007d415..4f94dda7 100644 Binary files a/tests/contexts/bezierCurveTo_1.png and b/tests/contexts/bezierCurveTo_1.png differ diff --git a/tests/contexts/clip_1.png b/tests/contexts/clip_1.png index f19e1783..4322fd17 100644 Binary files a/tests/contexts/clip_1.png and b/tests/contexts/clip_1.png differ diff --git a/tests/contexts/clip_1b.png b/tests/contexts/clip_1b.png index 2ec5ae68..0ebadd3b 100644 Binary files a/tests/contexts/clip_1b.png and b/tests/contexts/clip_1b.png differ diff --git a/tests/contexts/clip_1d.png b/tests/contexts/clip_1d.png index e2fe570e..626e6ff0 100644 Binary files a/tests/contexts/clip_1d.png and b/tests/contexts/clip_1d.png differ diff --git a/tests/contexts/clip_1f.png b/tests/contexts/clip_1f.png index 6a527137..ef63cee2 100644 Binary files a/tests/contexts/clip_1f.png and b/tests/contexts/clip_1f.png differ diff --git a/tests/contexts/clip_3.png b/tests/contexts/clip_3.png index 284221eb..3ddcf060 100644 Binary files a/tests/contexts/clip_3.png and b/tests/contexts/clip_3.png differ diff --git a/tests/contexts/ellipse_1.png b/tests/contexts/ellipse_1.png index 23d777ad..a966163b 100644 Binary files a/tests/contexts/ellipse_1.png and b/tests/contexts/ellipse_1.png differ diff --git a/tests/contexts/quadracticCurveTo_1.png b/tests/contexts/quadracticCurveTo_1.png index a48003eb..bb6b07db 100644 Binary files a/tests/contexts/quadracticCurveTo_1.png and b/tests/contexts/quadracticCurveTo_1.png differ diff --git a/tests/contexts/quadracticCurveTo_2.png b/tests/contexts/quadracticCurveTo_2.png index f1447f5b..07bf8857 100644 Binary files a/tests/contexts/quadracticCurveTo_2.png and b/tests/contexts/quadracticCurveTo_2.png differ diff --git a/tests/contexts/strokeText_1.png b/tests/contexts/strokeText_1.png index f408ac12..8ee6a58f 100644 Binary files a/tests/contexts/strokeText_1.png and b/tests/contexts/strokeText_1.png differ diff --git a/tests/fileformats/svg/diffs/Ghostscript_Tiger.png b/tests/fileformats/svg/diffs/Ghostscript_Tiger.png index edad280c..77022fd5 100644 Binary files a/tests/fileformats/svg/diffs/Ghostscript_Tiger.png and b/tests/fileformats/svg/diffs/Ghostscript_Tiger.png differ diff --git a/tests/fileformats/svg/diffs/circle01.png b/tests/fileformats/svg/diffs/circle01.png index 37ebc3fb..39588717 100644 Binary files a/tests/fileformats/svg/diffs/circle01.png and b/tests/fileformats/svg/diffs/circle01.png differ diff --git a/tests/fileformats/svg/diffs/ellipse01.png b/tests/fileformats/svg/diffs/ellipse01.png index 2a806227..ef29195d 100644 Binary files a/tests/fileformats/svg/diffs/ellipse01.png and b/tests/fileformats/svg/diffs/ellipse01.png differ diff --git a/tests/fileformats/svg/diffs/miterlimit.png b/tests/fileformats/svg/diffs/miterlimit.png index e680a741..629a7237 100644 Binary files a/tests/fileformats/svg/diffs/miterlimit.png and b/tests/fileformats/svg/diffs/miterlimit.png differ diff --git a/tests/fileformats/svg/diffs/polygon01.png b/tests/fileformats/svg/diffs/polygon01.png index 3c6543e2..9ce2cce7 100644 Binary files a/tests/fileformats/svg/diffs/polygon01.png and b/tests/fileformats/svg/diffs/polygon01.png differ diff --git a/tests/fileformats/svg/diffs/quad01.png b/tests/fileformats/svg/diffs/quad01.png index d515fd49..c913ab71 100644 Binary files a/tests/fileformats/svg/diffs/quad01.png and b/tests/fileformats/svg/diffs/quad01.png differ diff --git a/tests/fileformats/svg/diffs/rect02.png b/tests/fileformats/svg/diffs/rect02.png index 83f1459b..e9ebfa69 100644 Binary files a/tests/fileformats/svg/diffs/rect02.png and b/tests/fileformats/svg/diffs/rect02.png differ diff --git a/tests/fileformats/svg/diffs/scale.png b/tests/fileformats/svg/diffs/scale.png index 5a8faebd..155d956f 100644 Binary files a/tests/fileformats/svg/diffs/scale.png and b/tests/fileformats/svg/diffs/scale.png differ diff --git a/tests/fileformats/svg/emojitwo.png b/tests/fileformats/svg/emojitwo.png index 169630cc..4aa4ce85 100644 Binary files a/tests/fileformats/svg/emojitwo.png and b/tests/fileformats/svg/emojitwo.png differ diff --git a/tests/fileformats/svg/flat-color-icons.png b/tests/fileformats/svg/flat-color-icons.png index 5597525e..2e9b0b02 100644 Binary files a/tests/fileformats/svg/flat-color-icons.png and b/tests/fileformats/svg/flat-color-icons.png differ diff --git a/tests/fileformats/svg/ionicons.png b/tests/fileformats/svg/ionicons.png index 6cc2f9f8..16a38243 100644 Binary files a/tests/fileformats/svg/ionicons.png and b/tests/fileformats/svg/ionicons.png differ diff --git a/tests/fileformats/svg/noto-emoji.png b/tests/fileformats/svg/noto-emoji.png index d2064a1c..2d56c0c8 100644 Binary files a/tests/fileformats/svg/noto-emoji.png and b/tests/fileformats/svg/noto-emoji.png differ diff --git a/tests/fileformats/svg/openmoji.png b/tests/fileformats/svg/openmoji.png index 04d236d1..e5c5b080 100644 Binary files a/tests/fileformats/svg/openmoji.png and b/tests/fileformats/svg/openmoji.png differ diff --git a/tests/fileformats/svg/rendered/Ghostscript_Tiger.png b/tests/fileformats/svg/rendered/Ghostscript_Tiger.png index 09caa439..8fed296a 100644 Binary files a/tests/fileformats/svg/rendered/Ghostscript_Tiger.png and b/tests/fileformats/svg/rendered/Ghostscript_Tiger.png differ diff --git a/tests/fileformats/svg/rendered/circle01.png b/tests/fileformats/svg/rendered/circle01.png index 14fb41dc..8e3fc5ef 100644 Binary files a/tests/fileformats/svg/rendered/circle01.png and b/tests/fileformats/svg/rendered/circle01.png differ diff --git a/tests/fileformats/svg/rendered/ellipse01.png b/tests/fileformats/svg/rendered/ellipse01.png index fb414342..efe4f0b0 100644 Binary files a/tests/fileformats/svg/rendered/ellipse01.png and b/tests/fileformats/svg/rendered/ellipse01.png differ diff --git a/tests/fileformats/svg/rendered/miterlimit.png b/tests/fileformats/svg/rendered/miterlimit.png index 81195dae..272ec375 100644 Binary files a/tests/fileformats/svg/rendered/miterlimit.png and b/tests/fileformats/svg/rendered/miterlimit.png differ diff --git a/tests/fileformats/svg/rendered/polygon01.png b/tests/fileformats/svg/rendered/polygon01.png index 7a43fe13..5b245838 100644 Binary files a/tests/fileformats/svg/rendered/polygon01.png and b/tests/fileformats/svg/rendered/polygon01.png differ diff --git a/tests/fileformats/svg/rendered/quad01.png b/tests/fileformats/svg/rendered/quad01.png index ec456241..05f3dcdc 100644 Binary files a/tests/fileformats/svg/rendered/quad01.png and b/tests/fileformats/svg/rendered/quad01.png differ diff --git a/tests/fileformats/svg/rendered/rect02.png b/tests/fileformats/svg/rendered/rect02.png index f3a17440..6de85706 100644 Binary files a/tests/fileformats/svg/rendered/rect02.png and b/tests/fileformats/svg/rendered/rect02.png differ diff --git a/tests/fileformats/svg/rendered/scale.png b/tests/fileformats/svg/rendered/scale.png index e5e52c00..9f4e0c9d 100644 Binary files a/tests/fileformats/svg/rendered/scale.png and b/tests/fileformats/svg/rendered/scale.png differ diff --git a/tests/fileformats/svg/simple-icons.png b/tests/fileformats/svg/simple-icons.png index b462b074..714a3204 100644 Binary files a/tests/fileformats/svg/simple-icons.png and b/tests/fileformats/svg/simple-icons.png differ diff --git a/tests/fileformats/svg/tabler-icons.png b/tests/fileformats/svg/tabler-icons.png index d6b3724a..7450129b 100644 Binary files a/tests/fileformats/svg/tabler-icons.png and b/tests/fileformats/svg/tabler-icons.png differ diff --git a/tests/fileformats/svg/twbs-icons.png b/tests/fileformats/svg/twbs-icons.png index 116b716f..3e561c35 100644 Binary files a/tests/fileformats/svg/twbs-icons.png and b/tests/fileformats/svg/twbs-icons.png differ diff --git a/tests/fileformats/svg/twemoji.png b/tests/fileformats/svg/twemoji.png index 1eff4300..61b771cc 100644 Binary files a/tests/fileformats/svg/twemoji.png and b/tests/fileformats/svg/twemoji.png differ diff --git a/tests/fonts/diffs/alignments.png b/tests/fonts/diffs/alignments.png index 4b40e286..5c5c924e 100644 Binary files a/tests/fonts/diffs/alignments.png and b/tests/fonts/diffs/alignments.png differ diff --git a/tests/fonts/diffs/basic10.png b/tests/fonts/diffs/basic10.png index 99e19680..1c1ce225 100644 Binary files a/tests/fonts/diffs/basic10.png and b/tests/fonts/diffs/basic10.png differ diff --git a/tests/fonts/diffs/basic6.png b/tests/fonts/diffs/basic6.png index 15377640..382ee7af 100644 Binary files a/tests/fonts/diffs/basic6.png and b/tests/fonts/diffs/basic6.png differ diff --git a/tests/fonts/diffs/basic8b.png b/tests/fonts/diffs/basic8b.png index f8f0e472..e355a8b4 100644 Binary files a/tests/fonts/diffs/basic8b.png and b/tests/fonts/diffs/basic8b.png differ diff --git a/tests/fonts/diffs/cff.png b/tests/fonts/diffs/cff.png index 9b820ce2..4e790c11 100644 Binary files a/tests/fonts/diffs/cff.png and b/tests/fonts/diffs/cff.png differ diff --git a/tests/fonts/diffs/cff_jp.png b/tests/fonts/diffs/cff_jp.png index 4e745bfb..76cebe41 100644 Binary files a/tests/fonts/diffs/cff_jp.png and b/tests/fonts/diffs/cff_jp.png differ diff --git a/tests/fonts/diffs/cff_strikethrough.png b/tests/fonts/diffs/cff_strikethrough.png index 4a784035..6925ec03 100644 Binary files a/tests/fonts/diffs/cff_strikethrough.png and b/tests/fonts/diffs/cff_strikethrough.png differ diff --git a/tests/fonts/diffs/cff_underline.png b/tests/fonts/diffs/cff_underline.png index e78a15ca..28873cbd 100644 Binary files a/tests/fonts/diffs/cff_underline.png and b/tests/fonts/diffs/cff_underline.png differ diff --git a/tests/fonts/diffs/fallback.png b/tests/fonts/diffs/fallback.png index 80016e68..2f98d73b 100644 Binary files a/tests/fonts/diffs/fallback.png and b/tests/fonts/diffs/fallback.png differ diff --git a/tests/fonts/diffs/fallback2.png b/tests/fonts/diffs/fallback2.png index 35a9e3a2..03489819 100644 Binary files a/tests/fonts/diffs/fallback2.png and b/tests/fonts/diffs/fallback2.png differ diff --git a/tests/fonts/diffs/huge1.png b/tests/fonts/diffs/huge1.png index a036ba6c..235dffc8 100644 Binary files a/tests/fonts/diffs/huge1.png and b/tests/fonts/diffs/huge1.png differ diff --git a/tests/fonts/diffs/huge1_nokern.png b/tests/fonts/diffs/huge1_nokern.png index ef81d2d1..86036310 100644 Binary files a/tests/fonts/diffs/huge1_nokern.png and b/tests/fonts/diffs/huge1_nokern.png differ diff --git a/tests/fonts/diffs/huge2.png b/tests/fonts/diffs/huge2.png index 9cce5327..53eff752 100644 Binary files a/tests/fonts/diffs/huge2.png and b/tests/fonts/diffs/huge2.png differ diff --git a/tests/fonts/diffs/huge2_nokern.png b/tests/fonts/diffs/huge2_nokern.png index ba3f8c5b..d6e2d4bb 100644 Binary files a/tests/fonts/diffs/huge2_nokern.png and b/tests/fonts/diffs/huge2_nokern.png differ diff --git a/tests/fonts/diffs/huge3.png b/tests/fonts/diffs/huge3.png index 36eefbd5..354b6a41 100644 Binary files a/tests/fonts/diffs/huge3.png and b/tests/fonts/diffs/huge3.png differ diff --git a/tests/fonts/diffs/huge3_nokern.png b/tests/fonts/diffs/huge3_nokern.png index 1103fe04..930ab2f5 100644 Binary files a/tests/fonts/diffs/huge3_nokern.png and b/tests/fonts/diffs/huge3_nokern.png differ diff --git a/tests/fonts/diffs/image_stroke.png b/tests/fonts/diffs/image_stroke.png index 5c684a28..6d1abb55 100644 Binary files a/tests/fonts/diffs/image_stroke.png and b/tests/fonts/diffs/image_stroke.png differ diff --git a/tests/fonts/diffs/lines2.png b/tests/fonts/diffs/lines2.png index 49f5a9a4..05f0b9dd 100644 Binary files a/tests/fonts/diffs/lines2.png and b/tests/fonts/diffs/lines2.png differ diff --git a/tests/fonts/diffs/mask_stroke.png b/tests/fonts/diffs/mask_stroke.png index fd3da2b8..9876270d 100644 Binary files a/tests/fonts/diffs/mask_stroke.png and b/tests/fonts/diffs/mask_stroke.png differ diff --git a/tests/fonts/diffs/pairs1.png b/tests/fonts/diffs/pairs1.png index 239955f7..28c6ca16 100644 Binary files a/tests/fonts/diffs/pairs1.png and b/tests/fonts/diffs/pairs1.png differ diff --git a/tests/fonts/diffs/pairs2.png b/tests/fonts/diffs/pairs2.png index b6ee00af..fcb1e1ee 100644 Binary files a/tests/fonts/diffs/pairs2.png and b/tests/fonts/diffs/pairs2.png differ diff --git a/tests/fonts/diffs/pairs3.png b/tests/fonts/diffs/pairs3.png index c38f7ef1..c718a1cf 100644 Binary files a/tests/fonts/diffs/pairs3.png and b/tests/fonts/diffs/pairs3.png differ diff --git a/tests/fonts/diffs/paragraph1.png b/tests/fonts/diffs/paragraph1.png index 1e52d1d0..04c1b30e 100644 Binary files a/tests/fonts/diffs/paragraph1.png and b/tests/fonts/diffs/paragraph1.png differ diff --git a/tests/fonts/diffs/paragraph1_2.png b/tests/fonts/diffs/paragraph1_2.png index 8b60dde3..c6a9ff34 100644 Binary files a/tests/fonts/diffs/paragraph1_2.png and b/tests/fonts/diffs/paragraph1_2.png differ diff --git a/tests/fonts/diffs/paragraph1_3.png b/tests/fonts/diffs/paragraph1_3.png index 3088c5bd..63716919 100644 Binary files a/tests/fonts/diffs/paragraph1_3.png and b/tests/fonts/diffs/paragraph1_3.png differ diff --git a/tests/fonts/diffs/paragraph1_nokern.png b/tests/fonts/diffs/paragraph1_nokern.png index 417e3a2d..86e29fae 100644 Binary files a/tests/fonts/diffs/paragraph1_nokern.png and b/tests/fonts/diffs/paragraph1_nokern.png differ diff --git a/tests/fonts/diffs/paragraph1_nokern_2.png b/tests/fonts/diffs/paragraph1_nokern_2.png index 40e815f4..cbde8f6a 100644 Binary files a/tests/fonts/diffs/paragraph1_nokern_2.png and b/tests/fonts/diffs/paragraph1_nokern_2.png differ diff --git a/tests/fonts/diffs/paragraph1_nokern_3.png b/tests/fonts/diffs/paragraph1_nokern_3.png index 3a99ff3a..d6eb19ad 100644 Binary files a/tests/fonts/diffs/paragraph1_nokern_3.png and b/tests/fonts/diffs/paragraph1_nokern_3.png differ diff --git a/tests/fonts/diffs/paragraph2.png b/tests/fonts/diffs/paragraph2.png index 04a12be8..97ffac44 100644 Binary files a/tests/fonts/diffs/paragraph2.png and b/tests/fonts/diffs/paragraph2.png differ diff --git a/tests/fonts/diffs/paragraph2_2.png b/tests/fonts/diffs/paragraph2_2.png index 316f534a..930f89d6 100644 Binary files a/tests/fonts/diffs/paragraph2_2.png and b/tests/fonts/diffs/paragraph2_2.png differ diff --git a/tests/fonts/diffs/paragraph2_3.png b/tests/fonts/diffs/paragraph2_3.png index 5cc96b55..f6ce69cd 100644 Binary files a/tests/fonts/diffs/paragraph2_3.png and b/tests/fonts/diffs/paragraph2_3.png differ diff --git a/tests/fonts/diffs/paragraph2_nokern.png b/tests/fonts/diffs/paragraph2_nokern.png index c26a3c9c..5e9bfa23 100644 Binary files a/tests/fonts/diffs/paragraph2_nokern.png and b/tests/fonts/diffs/paragraph2_nokern.png differ diff --git a/tests/fonts/diffs/paragraph2_nokern_2.png b/tests/fonts/diffs/paragraph2_nokern_2.png index 64376e0d..9cae903b 100644 Binary files a/tests/fonts/diffs/paragraph2_nokern_2.png and b/tests/fonts/diffs/paragraph2_nokern_2.png differ diff --git a/tests/fonts/diffs/paragraph2_nokern_3.png b/tests/fonts/diffs/paragraph2_nokern_3.png index 01c14723..c2bcfe68 100644 Binary files a/tests/fonts/diffs/paragraph2_nokern_3.png and b/tests/fonts/diffs/paragraph2_nokern_3.png differ diff --git a/tests/fonts/diffs/paragraph3.png b/tests/fonts/diffs/paragraph3.png index f808654d..74cce402 100644 Binary files a/tests/fonts/diffs/paragraph3.png and b/tests/fonts/diffs/paragraph3.png differ diff --git a/tests/fonts/diffs/paragraph3_2.png b/tests/fonts/diffs/paragraph3_2.png index ff20d110..75b2dd58 100644 Binary files a/tests/fonts/diffs/paragraph3_2.png and b/tests/fonts/diffs/paragraph3_2.png differ diff --git a/tests/fonts/diffs/paragraph3_3.png b/tests/fonts/diffs/paragraph3_3.png index 101ee558..4fdda2c9 100644 Binary files a/tests/fonts/diffs/paragraph3_3.png and b/tests/fonts/diffs/paragraph3_3.png differ diff --git a/tests/fonts/diffs/paragraph3_nokern.png b/tests/fonts/diffs/paragraph3_nokern.png index 23f763e6..b0e82b29 100644 Binary files a/tests/fonts/diffs/paragraph3_nokern.png and b/tests/fonts/diffs/paragraph3_nokern.png differ diff --git a/tests/fonts/diffs/paragraph3_nokern_2.png b/tests/fonts/diffs/paragraph3_nokern_2.png index 14650c3d..1ad30e70 100644 Binary files a/tests/fonts/diffs/paragraph3_nokern_2.png and b/tests/fonts/diffs/paragraph3_nokern_2.png differ diff --git a/tests/fonts/diffs/paragraph3_nokern_3.png b/tests/fonts/diffs/paragraph3_nokern_3.png index 2d7d5c8d..c318cc3a 100644 Binary files a/tests/fonts/diffs/paragraph3_nokern_3.png and b/tests/fonts/diffs/paragraph3_nokern_3.png differ diff --git a/tests/fonts/diffs/paragraph4.png b/tests/fonts/diffs/paragraph4.png index f8b6eb53..88ebf274 100644 Binary files a/tests/fonts/diffs/paragraph4.png and b/tests/fonts/diffs/paragraph4.png differ diff --git a/tests/fonts/diffs/paragraph4_2.png b/tests/fonts/diffs/paragraph4_2.png index 65a560ae..8f2b564b 100644 Binary files a/tests/fonts/diffs/paragraph4_2.png and b/tests/fonts/diffs/paragraph4_2.png differ diff --git a/tests/fonts/diffs/paragraph4_3.png b/tests/fonts/diffs/paragraph4_3.png index 0a63c035..b8aecbb6 100644 Binary files a/tests/fonts/diffs/paragraph4_3.png and b/tests/fonts/diffs/paragraph4_3.png differ diff --git a/tests/fonts/diffs/paragraph4_nokern.png b/tests/fonts/diffs/paragraph4_nokern.png index 29571c95..e377a23b 100644 Binary files a/tests/fonts/diffs/paragraph4_nokern.png and b/tests/fonts/diffs/paragraph4_nokern.png differ diff --git a/tests/fonts/diffs/paragraph4_nokern_2.png b/tests/fonts/diffs/paragraph4_nokern_2.png index 7294022d..eee61cb5 100644 Binary files a/tests/fonts/diffs/paragraph4_nokern_2.png and b/tests/fonts/diffs/paragraph4_nokern_2.png differ diff --git a/tests/fonts/diffs/paragraph4_nokern_3.png b/tests/fonts/diffs/paragraph4_nokern_3.png index d1e9f131..f81c1e87 100644 Binary files a/tests/fonts/diffs/paragraph4_nokern_3.png and b/tests/fonts/diffs/paragraph4_nokern_3.png differ diff --git a/tests/fonts/diffs/paragraph5.png b/tests/fonts/diffs/paragraph5.png index 15f0f46a..6ed39bd6 100644 Binary files a/tests/fonts/diffs/paragraph5.png and b/tests/fonts/diffs/paragraph5.png differ diff --git a/tests/fonts/diffs/paragraph5_2.png b/tests/fonts/diffs/paragraph5_2.png index 0043f129..cc316b4c 100644 Binary files a/tests/fonts/diffs/paragraph5_2.png and b/tests/fonts/diffs/paragraph5_2.png differ diff --git a/tests/fonts/diffs/paragraph5_3.png b/tests/fonts/diffs/paragraph5_3.png index b1f67ea3..37705982 100644 Binary files a/tests/fonts/diffs/paragraph5_3.png and b/tests/fonts/diffs/paragraph5_3.png differ diff --git a/tests/fonts/diffs/paragraph5_nokern.png b/tests/fonts/diffs/paragraph5_nokern.png index a2b265e3..026d6d25 100644 Binary files a/tests/fonts/diffs/paragraph5_nokern.png and b/tests/fonts/diffs/paragraph5_nokern.png differ diff --git a/tests/fonts/diffs/paragraph5_nokern_2.png b/tests/fonts/diffs/paragraph5_nokern_2.png index b0191ed6..0f7852bf 100644 Binary files a/tests/fonts/diffs/paragraph5_nokern_2.png and b/tests/fonts/diffs/paragraph5_nokern_2.png differ diff --git a/tests/fonts/diffs/paragraph5_nokern_3.png b/tests/fonts/diffs/paragraph5_nokern_3.png index d48a5f99..0d542a7f 100644 Binary files a/tests/fonts/diffs/paragraph5_nokern_3.png and b/tests/fonts/diffs/paragraph5_nokern_3.png differ diff --git a/tests/fonts/diffs/selection_rects2.png b/tests/fonts/diffs/selection_rects2.png index b96503aa..04d4ae35 100644 Binary files a/tests/fonts/diffs/selection_rects2.png and b/tests/fonts/diffs/selection_rects2.png differ diff --git a/tests/fonts/diffs/spans1.png b/tests/fonts/diffs/spans1.png index 57ada5c6..a288f204 100644 Binary files a/tests/fonts/diffs/spans1.png and b/tests/fonts/diffs/spans1.png differ diff --git a/tests/fonts/diffs/spans2.png b/tests/fonts/diffs/spans2.png index ab1be567..e8bb06a3 100644 Binary files a/tests/fonts/diffs/spans2.png and b/tests/fonts/diffs/spans2.png differ diff --git a/tests/fonts/diffs/spans4.png b/tests/fonts/diffs/spans4.png index a114c9ca..3747e477 100644 Binary files a/tests/fonts/diffs/spans4.png and b/tests/fonts/diffs/spans4.png differ diff --git a/tests/fonts/diffs/spans5.png b/tests/fonts/diffs/spans5.png index e9a1ba0b..82ab8b34 100644 Binary files a/tests/fonts/diffs/spans5.png and b/tests/fonts/diffs/spans5.png differ diff --git a/tests/fonts/diffs/spans6.png b/tests/fonts/diffs/spans6.png index ad818aaf..5f156e44 100644 Binary files a/tests/fonts/diffs/spans6.png and b/tests/fonts/diffs/spans6.png differ diff --git a/tests/fonts/diffs/strikethrough3.png b/tests/fonts/diffs/strikethrough3.png index e90e3c37..4327c153 100644 Binary files a/tests/fonts/diffs/strikethrough3.png and b/tests/fonts/diffs/strikethrough3.png differ diff --git a/tests/fonts/diffs/underline3.png b/tests/fonts/diffs/underline3.png index cc5f019e..4eac3b77 100644 Binary files a/tests/fonts/diffs/underline3.png and b/tests/fonts/diffs/underline3.png differ diff --git a/tests/fonts/rendered/alignments.png b/tests/fonts/rendered/alignments.png index 446c7695..b4e4a698 100644 Binary files a/tests/fonts/rendered/alignments.png and b/tests/fonts/rendered/alignments.png differ diff --git a/tests/fonts/rendered/basic10.png b/tests/fonts/rendered/basic10.png index 49f8753c..2cabf1ea 100644 Binary files a/tests/fonts/rendered/basic10.png and b/tests/fonts/rendered/basic10.png differ diff --git a/tests/fonts/rendered/basic6.png b/tests/fonts/rendered/basic6.png index 0f702ce2..fb84f193 100644 Binary files a/tests/fonts/rendered/basic6.png and b/tests/fonts/rendered/basic6.png differ diff --git a/tests/fonts/rendered/basic8b.png b/tests/fonts/rendered/basic8b.png index 27725ade..4138702a 100644 Binary files a/tests/fonts/rendered/basic8b.png and b/tests/fonts/rendered/basic8b.png differ diff --git a/tests/fonts/rendered/cff.png b/tests/fonts/rendered/cff.png index 364c36b6..bb30c3d5 100644 Binary files a/tests/fonts/rendered/cff.png and b/tests/fonts/rendered/cff.png differ diff --git a/tests/fonts/rendered/cff_jp.png b/tests/fonts/rendered/cff_jp.png index 2126224e..53c1e744 100644 Binary files a/tests/fonts/rendered/cff_jp.png and b/tests/fonts/rendered/cff_jp.png differ diff --git a/tests/fonts/rendered/cff_strikethrough.png b/tests/fonts/rendered/cff_strikethrough.png index d4ce8ff3..d13e1e31 100644 Binary files a/tests/fonts/rendered/cff_strikethrough.png and b/tests/fonts/rendered/cff_strikethrough.png differ diff --git a/tests/fonts/rendered/cff_underline.png b/tests/fonts/rendered/cff_underline.png index 930df43e..060089c6 100644 Binary files a/tests/fonts/rendered/cff_underline.png and b/tests/fonts/rendered/cff_underline.png differ diff --git a/tests/fonts/rendered/fallback.png b/tests/fonts/rendered/fallback.png index a200ca0c..c183c302 100644 Binary files a/tests/fonts/rendered/fallback.png and b/tests/fonts/rendered/fallback.png differ diff --git a/tests/fonts/rendered/fallback2.png b/tests/fonts/rendered/fallback2.png index a200ca0c..c183c302 100644 Binary files a/tests/fonts/rendered/fallback2.png and b/tests/fonts/rendered/fallback2.png differ diff --git a/tests/fonts/rendered/huge1.png b/tests/fonts/rendered/huge1.png index f771b41d..3f5a1ebd 100644 Binary files a/tests/fonts/rendered/huge1.png and b/tests/fonts/rendered/huge1.png differ diff --git a/tests/fonts/rendered/huge1_nokern.png b/tests/fonts/rendered/huge1_nokern.png index 3c408545..72836375 100644 Binary files a/tests/fonts/rendered/huge1_nokern.png and b/tests/fonts/rendered/huge1_nokern.png differ diff --git a/tests/fonts/rendered/huge2.png b/tests/fonts/rendered/huge2.png index 6dc46ee6..f537a149 100644 Binary files a/tests/fonts/rendered/huge2.png and b/tests/fonts/rendered/huge2.png differ diff --git a/tests/fonts/rendered/huge2_nokern.png b/tests/fonts/rendered/huge2_nokern.png index 513bfe73..678fff12 100644 Binary files a/tests/fonts/rendered/huge2_nokern.png and b/tests/fonts/rendered/huge2_nokern.png differ diff --git a/tests/fonts/rendered/huge3.png b/tests/fonts/rendered/huge3.png index 8cfbebb3..ef90ec3b 100644 Binary files a/tests/fonts/rendered/huge3.png and b/tests/fonts/rendered/huge3.png differ diff --git a/tests/fonts/rendered/huge3_nokern.png b/tests/fonts/rendered/huge3_nokern.png index 30cf5095..4799904c 100644 Binary files a/tests/fonts/rendered/huge3_nokern.png and b/tests/fonts/rendered/huge3_nokern.png differ diff --git a/tests/fonts/rendered/image_stroke.png b/tests/fonts/rendered/image_stroke.png index 3caaca22..fbf391a1 100644 Binary files a/tests/fonts/rendered/image_stroke.png and b/tests/fonts/rendered/image_stroke.png differ diff --git a/tests/fonts/rendered/lines2.png b/tests/fonts/rendered/lines2.png index 40d51c49..2d717196 100644 Binary files a/tests/fonts/rendered/lines2.png and b/tests/fonts/rendered/lines2.png differ diff --git a/tests/fonts/rendered/mask_stroke.png b/tests/fonts/rendered/mask_stroke.png index 17bfc7dc..ba8c8cf0 100644 Binary files a/tests/fonts/rendered/mask_stroke.png and b/tests/fonts/rendered/mask_stroke.png differ diff --git a/tests/fonts/rendered/pairs1.png b/tests/fonts/rendered/pairs1.png index 41f37f48..04c64e9b 100644 Binary files a/tests/fonts/rendered/pairs1.png and b/tests/fonts/rendered/pairs1.png differ diff --git a/tests/fonts/rendered/pairs2.png b/tests/fonts/rendered/pairs2.png index 2b79a526..ab547458 100644 Binary files a/tests/fonts/rendered/pairs2.png and b/tests/fonts/rendered/pairs2.png differ diff --git a/tests/fonts/rendered/pairs3.png b/tests/fonts/rendered/pairs3.png index 059920da..25951772 100644 Binary files a/tests/fonts/rendered/pairs3.png and b/tests/fonts/rendered/pairs3.png differ diff --git a/tests/fonts/rendered/paragraph1.png b/tests/fonts/rendered/paragraph1.png index afcb4b27..a9b31801 100644 Binary files a/tests/fonts/rendered/paragraph1.png and b/tests/fonts/rendered/paragraph1.png differ diff --git a/tests/fonts/rendered/paragraph1_2.png b/tests/fonts/rendered/paragraph1_2.png index 348b6238..7e961296 100644 Binary files a/tests/fonts/rendered/paragraph1_2.png and b/tests/fonts/rendered/paragraph1_2.png differ diff --git a/tests/fonts/rendered/paragraph1_3.png b/tests/fonts/rendered/paragraph1_3.png index 5f67ab2a..753cbf51 100644 Binary files a/tests/fonts/rendered/paragraph1_3.png and b/tests/fonts/rendered/paragraph1_3.png differ diff --git a/tests/fonts/rendered/paragraph1_nokern.png b/tests/fonts/rendered/paragraph1_nokern.png index 0643c03b..a80191e3 100644 Binary files a/tests/fonts/rendered/paragraph1_nokern.png and b/tests/fonts/rendered/paragraph1_nokern.png differ diff --git a/tests/fonts/rendered/paragraph1_nokern_2.png b/tests/fonts/rendered/paragraph1_nokern_2.png index 4a685e8e..51f3f9e5 100644 Binary files a/tests/fonts/rendered/paragraph1_nokern_2.png and b/tests/fonts/rendered/paragraph1_nokern_2.png differ diff --git a/tests/fonts/rendered/paragraph1_nokern_3.png b/tests/fonts/rendered/paragraph1_nokern_3.png index 7c5d2e86..db705633 100644 Binary files a/tests/fonts/rendered/paragraph1_nokern_3.png and b/tests/fonts/rendered/paragraph1_nokern_3.png differ diff --git a/tests/fonts/rendered/paragraph2.png b/tests/fonts/rendered/paragraph2.png index 934bab2f..6b01e253 100644 Binary files a/tests/fonts/rendered/paragraph2.png and b/tests/fonts/rendered/paragraph2.png differ diff --git a/tests/fonts/rendered/paragraph2_2.png b/tests/fonts/rendered/paragraph2_2.png index bfbba75e..5c1eb831 100644 Binary files a/tests/fonts/rendered/paragraph2_2.png and b/tests/fonts/rendered/paragraph2_2.png differ diff --git a/tests/fonts/rendered/paragraph2_3.png b/tests/fonts/rendered/paragraph2_3.png index 0a35657c..0e4d50af 100644 Binary files a/tests/fonts/rendered/paragraph2_3.png and b/tests/fonts/rendered/paragraph2_3.png differ diff --git a/tests/fonts/rendered/paragraph2_nokern.png b/tests/fonts/rendered/paragraph2_nokern.png index 6cb8e6b0..70c360cf 100644 Binary files a/tests/fonts/rendered/paragraph2_nokern.png and b/tests/fonts/rendered/paragraph2_nokern.png differ diff --git a/tests/fonts/rendered/paragraph2_nokern_2.png b/tests/fonts/rendered/paragraph2_nokern_2.png index ee43cee5..6b432aee 100644 Binary files a/tests/fonts/rendered/paragraph2_nokern_2.png and b/tests/fonts/rendered/paragraph2_nokern_2.png differ diff --git a/tests/fonts/rendered/paragraph2_nokern_3.png b/tests/fonts/rendered/paragraph2_nokern_3.png index 645f9083..7c00d894 100644 Binary files a/tests/fonts/rendered/paragraph2_nokern_3.png and b/tests/fonts/rendered/paragraph2_nokern_3.png differ diff --git a/tests/fonts/rendered/paragraph3.png b/tests/fonts/rendered/paragraph3.png index a89acda1..51b1ab09 100644 Binary files a/tests/fonts/rendered/paragraph3.png and b/tests/fonts/rendered/paragraph3.png differ diff --git a/tests/fonts/rendered/paragraph3_2.png b/tests/fonts/rendered/paragraph3_2.png index d9101ee0..2f5499a8 100644 Binary files a/tests/fonts/rendered/paragraph3_2.png and b/tests/fonts/rendered/paragraph3_2.png differ diff --git a/tests/fonts/rendered/paragraph3_3.png b/tests/fonts/rendered/paragraph3_3.png index 9fa0968c..ced91243 100644 Binary files a/tests/fonts/rendered/paragraph3_3.png and b/tests/fonts/rendered/paragraph3_3.png differ diff --git a/tests/fonts/rendered/paragraph3_nokern.png b/tests/fonts/rendered/paragraph3_nokern.png index 793798c8..00ec1c84 100644 Binary files a/tests/fonts/rendered/paragraph3_nokern.png and b/tests/fonts/rendered/paragraph3_nokern.png differ diff --git a/tests/fonts/rendered/paragraph3_nokern_2.png b/tests/fonts/rendered/paragraph3_nokern_2.png index f842c908..43850cb2 100644 Binary files a/tests/fonts/rendered/paragraph3_nokern_2.png and b/tests/fonts/rendered/paragraph3_nokern_2.png differ diff --git a/tests/fonts/rendered/paragraph3_nokern_3.png b/tests/fonts/rendered/paragraph3_nokern_3.png index 5688a833..851dd2b1 100644 Binary files a/tests/fonts/rendered/paragraph3_nokern_3.png and b/tests/fonts/rendered/paragraph3_nokern_3.png differ diff --git a/tests/fonts/rendered/paragraph4.png b/tests/fonts/rendered/paragraph4.png index 5f70f4c4..14dbdf08 100644 Binary files a/tests/fonts/rendered/paragraph4.png and b/tests/fonts/rendered/paragraph4.png differ diff --git a/tests/fonts/rendered/paragraph4_2.png b/tests/fonts/rendered/paragraph4_2.png index cdd87da6..d458f597 100644 Binary files a/tests/fonts/rendered/paragraph4_2.png and b/tests/fonts/rendered/paragraph4_2.png differ diff --git a/tests/fonts/rendered/paragraph4_3.png b/tests/fonts/rendered/paragraph4_3.png index 1f1891d3..4ad59d51 100644 Binary files a/tests/fonts/rendered/paragraph4_3.png and b/tests/fonts/rendered/paragraph4_3.png differ diff --git a/tests/fonts/rendered/paragraph4_nokern.png b/tests/fonts/rendered/paragraph4_nokern.png index d5eaecf0..6c974b13 100644 Binary files a/tests/fonts/rendered/paragraph4_nokern.png and b/tests/fonts/rendered/paragraph4_nokern.png differ diff --git a/tests/fonts/rendered/paragraph4_nokern_2.png b/tests/fonts/rendered/paragraph4_nokern_2.png index 7b5d56a1..f6e37371 100644 Binary files a/tests/fonts/rendered/paragraph4_nokern_2.png and b/tests/fonts/rendered/paragraph4_nokern_2.png differ diff --git a/tests/fonts/rendered/paragraph4_nokern_3.png b/tests/fonts/rendered/paragraph4_nokern_3.png index 85fc95aa..cd5b41e9 100644 Binary files a/tests/fonts/rendered/paragraph4_nokern_3.png and b/tests/fonts/rendered/paragraph4_nokern_3.png differ diff --git a/tests/fonts/rendered/paragraph5.png b/tests/fonts/rendered/paragraph5.png index 0ccd0007..bc9b418c 100644 Binary files a/tests/fonts/rendered/paragraph5.png and b/tests/fonts/rendered/paragraph5.png differ diff --git a/tests/fonts/rendered/paragraph5_2.png b/tests/fonts/rendered/paragraph5_2.png index 47db730a..ef4506eb 100644 Binary files a/tests/fonts/rendered/paragraph5_2.png and b/tests/fonts/rendered/paragraph5_2.png differ diff --git a/tests/fonts/rendered/paragraph5_3.png b/tests/fonts/rendered/paragraph5_3.png index 7dc10a01..5ea50c2b 100644 Binary files a/tests/fonts/rendered/paragraph5_3.png and b/tests/fonts/rendered/paragraph5_3.png differ diff --git a/tests/fonts/rendered/paragraph5_nokern.png b/tests/fonts/rendered/paragraph5_nokern.png index 72657b11..ad9918cf 100644 Binary files a/tests/fonts/rendered/paragraph5_nokern.png and b/tests/fonts/rendered/paragraph5_nokern.png differ diff --git a/tests/fonts/rendered/paragraph5_nokern_2.png b/tests/fonts/rendered/paragraph5_nokern_2.png index 93b73c51..0767f3db 100644 Binary files a/tests/fonts/rendered/paragraph5_nokern_2.png and b/tests/fonts/rendered/paragraph5_nokern_2.png differ diff --git a/tests/fonts/rendered/paragraph5_nokern_3.png b/tests/fonts/rendered/paragraph5_nokern_3.png index 60e6bfb4..184bc962 100644 Binary files a/tests/fonts/rendered/paragraph5_nokern_3.png and b/tests/fonts/rendered/paragraph5_nokern_3.png differ diff --git a/tests/fonts/rendered/selection_rects1.png b/tests/fonts/rendered/selection_rects1.png index a8b06f6a..3529bd92 100644 Binary files a/tests/fonts/rendered/selection_rects1.png and b/tests/fonts/rendered/selection_rects1.png differ diff --git a/tests/fonts/rendered/selection_rects2.png b/tests/fonts/rendered/selection_rects2.png index 11354bfa..afb39fc6 100644 Binary files a/tests/fonts/rendered/selection_rects2.png and b/tests/fonts/rendered/selection_rects2.png differ diff --git a/tests/fonts/rendered/spans1.png b/tests/fonts/rendered/spans1.png index 900872d3..a894b4f9 100644 Binary files a/tests/fonts/rendered/spans1.png and b/tests/fonts/rendered/spans1.png differ diff --git a/tests/fonts/rendered/spans2.png b/tests/fonts/rendered/spans2.png index 3429c136..2c1a1253 100644 Binary files a/tests/fonts/rendered/spans2.png and b/tests/fonts/rendered/spans2.png differ diff --git a/tests/fonts/rendered/spans4.png b/tests/fonts/rendered/spans4.png index 53186757..b62dea46 100644 Binary files a/tests/fonts/rendered/spans4.png and b/tests/fonts/rendered/spans4.png differ diff --git a/tests/fonts/rendered/spans5.png b/tests/fonts/rendered/spans5.png index 01068f82..54d2facc 100644 Binary files a/tests/fonts/rendered/spans5.png and b/tests/fonts/rendered/spans5.png differ diff --git a/tests/fonts/rendered/spans6.png b/tests/fonts/rendered/spans6.png index 5b81cb3f..60ee0c3d 100644 Binary files a/tests/fonts/rendered/spans6.png and b/tests/fonts/rendered/spans6.png differ diff --git a/tests/fonts/rendered/strikethrough3.png b/tests/fonts/rendered/strikethrough3.png index 5406bf69..64bfed25 100644 Binary files a/tests/fonts/rendered/strikethrough3.png and b/tests/fonts/rendered/strikethrough3.png differ diff --git a/tests/fonts/rendered/underline3.png b/tests/fonts/rendered/underline3.png index 7400ce22..55a27bf8 100644 Binary files a/tests/fonts/rendered/underline3.png and b/tests/fonts/rendered/underline3.png differ diff --git a/tests/fonts/svg_ibm.png b/tests/fonts/svg_ibm.png index 6c5b27be..8ba7eace 100644 Binary files a/tests/fonts/svg_ibm.png and b/tests/fonts/svg_ibm.png differ diff --git a/tests/images/strokeEllipse.png b/tests/images/strokeEllipse.png index 50562a0d..37cab10f 100644 Binary files a/tests/images/strokeEllipse.png and b/tests/images/strokeEllipse.png differ diff --git a/tests/images/strokePolygon.png b/tests/images/strokePolygon.png index d833617f..363870bd 100644 Binary files a/tests/images/strokePolygon.png and b/tests/images/strokePolygon.png differ diff --git a/tests/images/strokeRoundedRect.png b/tests/images/strokeRoundedRect.png index fdfa991a..99569a0b 100644 Binary files a/tests/images/strokeRoundedRect.png and b/tests/images/strokeRoundedRect.png differ diff --git a/tests/masks/drawEllipse.png b/tests/masks/drawEllipse.png index 1bd4af34..58a2fb1b 100644 Binary files a/tests/masks/drawEllipse.png and b/tests/masks/drawEllipse.png differ diff --git a/tests/masks/strokeEllipse.png b/tests/masks/strokeEllipse.png index 85952724..70e3642b 100644 Binary files a/tests/masks/strokeEllipse.png and b/tests/masks/strokeEllipse.png differ diff --git a/tests/masks/strokePolygon.png b/tests/masks/strokePolygon.png index 00e432a4..53880b11 100644 Binary files a/tests/masks/strokePolygon.png and b/tests/masks/strokePolygon.png differ diff --git a/tests/masks/strokeRoundedRect.png b/tests/masks/strokeRoundedRect.png index d5676548..6a05a92a 100644 Binary files a/tests/masks/strokeRoundedRect.png and b/tests/masks/strokeRoundedRect.png differ diff --git a/tests/paths/arc.png b/tests/paths/arc.png index 76b3cb02..c5c0b77c 100644 Binary files a/tests/paths/arc.png and b/tests/paths/arc.png differ diff --git a/tests/paths/arcTo1.png b/tests/paths/arcTo1.png index c4345beb..a07975e3 100644 Binary files a/tests/paths/arcTo1.png and b/tests/paths/arcTo1.png differ diff --git a/tests/paths/arcTo2.png b/tests/paths/arcTo2.png index b7ecea13..6a7b209b 100644 Binary files a/tests/paths/arcTo2.png and b/tests/paths/arcTo2.png differ diff --git a/tests/paths/arcTo3.png b/tests/paths/arcTo3.png index e7674af2..d71b8d88 100644 Binary files a/tests/paths/arcTo3.png and b/tests/paths/arcTo3.png differ diff --git a/tests/paths/opacityStroke.png b/tests/paths/opacityStroke.png index 278d3d1c..db3b97e7 100644 Binary files a/tests/paths/opacityStroke.png and b/tests/paths/opacityStroke.png differ diff --git a/tests/paths/pixelScale.png b/tests/paths/pixelScale.png index 6b8606f7..48e35a97 100644 Binary files a/tests/paths/pixelScale.png and b/tests/paths/pixelScale.png differ