diff --git a/examples/gradient.png b/examples/gradient.png index c14c7f8..50b867b 100644 Binary files a/examples/gradient.png and b/examples/gradient.png differ diff --git a/examples/heart.png b/examples/heart.png index 968e975..b7ca705 100644 Binary files a/examples/heart.png and b/examples/heart.png differ diff --git a/examples/masking.png b/examples/masking.png index c95e421..b508b07 100644 Binary files a/examples/masking.png and b/examples/masking.png differ diff --git a/examples/shadow.png b/examples/shadow.png index ef172e6..c222dd3 100644 Binary files a/examples/shadow.png and b/examples/shadow.png differ diff --git a/examples/text.png b/examples/text.png index e7b6f53..100b2d2 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 2f13dde..320067c 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 9946fb9..0f6af19 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 1bf9ff2..638c147 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 a007d41..4f94dda 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 f19e178..4322fd1 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 2ec5ae6..0ebadd3 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 e2fe570..626e6ff 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 6a52713..ef63cee 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 284221e..3ddcf06 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 23d777a..a966163 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 a48003e..bb6b07d 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 f1447f5..07bf885 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 f408ac1..8ee6a58 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 edad280..77022fd 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 37ebc3f..3958871 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 2a80622..ef29195 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 e680a74..629a723 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 3c6543e..9ce2cce 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 d515fd4..c913ab7 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 83f1459..e9ebfa6 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 5a8faeb..155d956 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 169630c..4aa4ce8 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 5597525..2e9b0b0 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 6cc2f9f..16a3824 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 d2064a1..2d56c0c 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 04d236d..e5c5b08 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 09caa43..8fed296 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 14fb41d..8e3fc5e 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 fb41434..efe4f0b 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 81195da..272ec37 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 7a43fe1..5b24583 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 ec45624..05f3dcd 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 f3a1744..6de8570 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 e5e52c0..9f4e0c9 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 b462b07..714a320 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 d6b3724..7450129 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 116b716..3e561c3 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 1eff430..61b771c 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 4b40e28..5c5c924 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 99e1968..1c1ce22 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 1537764..382ee7a 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 f8f0e47..e355a8b 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 9b820ce..4e790c1 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 4e745bf..76cebe4 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 4a78403..6925ec0 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 e78a15c..28873cb 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 80016e6..2f98d73 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 35a9e3a..0348981 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 a036ba6..235dffc 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 ef81d2d..8603631 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 9cce532..53eff75 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 ba3f8c5..d6e2d4b 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 36eefbd..354b6a4 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 1103fe0..930ab2f 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 5c684a2..6d1abb5 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 49f5a9a..05f0b9d 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 fd3da2b..9876270 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 239955f..28c6ca1 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 b6ee00a..fcb1e1e 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 c38f7ef..c718a1c 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 1e52d1d..04c1b30 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 8b60dde..c6a9ff3 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 3088c5b..6371691 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 417e3a2..86e29fa 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 40e815f..cbde8f6 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 3a99ff3..d6eb19a 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 04a12be..97ffac4 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 316f534..930f89d 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 5cc96b5..f6ce69c 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 c26a3c9..5e9bfa2 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 64376e0..9cae903 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 01c1472..c2bcfe6 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 f808654..74cce40 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 ff20d11..75b2dd5 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 101ee55..4fdda2c 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 23f763e..b0e82b2 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 14650c3..1ad30e7 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 2d7d5c8..c318cc3 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 f8b6eb5..88ebf27 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 65a560a..8f2b564 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 0a63c03..b8aecbb 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 29571c9..e377a23 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 7294022..eee61cb 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 d1e9f13..f81c1e8 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 15f0f46..6ed39bd 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 0043f12..cc316b4 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 b1f67ea..3770598 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 a2b265e..026d6d2 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 b0191ed..0f7852b 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 d48a5f9..0d542a7 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 b96503a..04d4ae3 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 57ada5c..a288f20 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 ab1be56..e8bb06a 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 a114c9c..3747e47 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 e9a1ba0..82ab8b3 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 ad818aa..5f156e4 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 e90e3c3..4327c15 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 cc5f019..4eac3b7 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 446c769..b4e4a69 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 49f8753..2cabf1e 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 0f702ce..fb84f19 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 27725ad..4138702 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 364c36b..bb30c3d 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 2126224..53c1e74 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 d4ce8ff..d13e1e3 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 930df43..060089c 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 a200ca0..c183c30 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 a200ca0..c183c30 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 f771b41..3f5a1eb 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 3c40854..7283637 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 6dc46ee..f537a14 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 513bfe7..678fff1 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 8cfbebb..ef90ec3 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 30cf509..4799904 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 3caaca2..fbf391a 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 40d51c4..2d71719 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 17bfc7d..ba8c8cf 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 41f37f4..04c64e9 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 2b79a52..ab54745 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 059920d..2595177 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 afcb4b2..a9b3180 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 348b623..7e96129 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 5f67ab2..753cbf5 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 0643c03..a80191e 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 4a685e8..51f3f9e 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 7c5d2e8..db70563 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 934bab2..6b01e25 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 bfbba75..5c1eb83 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 0a35657..0e4d50a 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 6cb8e6b..70c360c 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 ee43cee..6b432ae 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 645f908..7c00d89 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 a89acda..51b1ab0 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 d9101ee..2f5499a 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 9fa0968..ced9124 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 793798c..00ec1c8 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 f842c90..43850cb 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 5688a83..851dd2b 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 5f70f4c..14dbdf0 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 cdd87da..d458f59 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 1f1891d..4ad59d5 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 d5eaecf..6c974b1 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 7b5d56a..f6e3737 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 85fc95a..cd5b41e 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 0ccd000..bc9b418 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 47db730..ef4506e 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 7dc10a0..5ea50c2 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 72657b1..ad9918c 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 93b73c5..0767f3d 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 60e6bfb..184bc96 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 a8b06f6..3529bd9 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 11354bf..afb39fc 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 900872d..a894b4f 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 3429c13..2c1a125 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 5318675..b62dea4 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 01068f8..54d2fac 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 5b81cb3..60ee0c3 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 5406bf6..64bfed2 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 7400ce2..55a27bf 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 6c5b27b..8ba7eac 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 50562a0..37cab10 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 d833617..363870b 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 fdfa991..99569a0 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 1bd4af3..58a2fb1 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 8595272..70e3642 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 00e432a..53880b1 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 d567654..6a05a92 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 76b3cb0..c5c0b77 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 c4345be..a07975e 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 b7ecea1..6a7b209 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 e7674af..d71b8d8 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 278d3d1..db3b97e 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 6b8606f..48e35a9 100644 Binary files a/tests/paths/pixelScale.png and b/tests/paths/pixelScale.png differ