<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Hilaire,<br>
    <br>
    On 6/28/2020 9:51 AM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote cite="mid:2a833910-7ffb-36ab-608e-fa853917279a@drgeo.eu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><font size="+1">Hi Juan, <br>
        </font></p>
      <p><font size="+1">I find some time to test it. <br>
        </font></p>
      <p><font size="+1">To do so I only need to change the parent of
          the DrGDrawable class to VectorGraphicsPasteUpMorph. Easy. I
          read your hack, it adds one message send per rendered morphs.
          I don't have strong opinion on that.</font></p>
    </blockquote>
    <br>
    Ok.<br>
    <br>
    <blockquote cite="mid:2a833910-7ffb-36ab-608e-fa853917279a@drgeo.eu"
      type="cite"> <img moz-do-not-send="false"
        src="cid:part1.04080800.06060806@jvuletich.org" title="DrGeo on
        VectorGraphics canvas" alt="" height="551" width="590">
      <p>You can observe the linesĀ  are blurred and the colour is not
        right. The lines should be black and they are too thick for a
        one pixel width line. Some lines are black because there are
        several segments in top of each other.<br>
      </p>
    </blockquote>
    <br>
    This is because of the anti aliasing. See
    <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Spatial_anti-aliasing#Signal_processing_approach_to_anti-aliasing">https://en.wikipedia.org/wiki/Spatial_anti-aliasing#Signal_processing_approach_to_anti-aliasing</a>
    . According with signal processing theory, you can not do 1-pixel
    features without aliasing. The VectorGraphics engines follow the
    theory. So, if you ask for a line that is narrower than what the
    engine can draw, it draws it at the minimum possible width (i.e.
    slightly wider), but using translucency to compensate (otherways it
    would become too "heavy" due to being wider than asked).<br>
    <br>
    Following signal processing theory is the reason why the results are
    less pixelated than, for example, Cairo.<br>
    <br>
    <blockquote cite="mid:2a833910-7ffb-36ab-608e-fa853917279a@drgeo.eu"
      type="cite">
      <p> </p>
      <p>Adding a StringMorph will set Cuis in an infinite loop scenario
        without way to escape (Alt+[.] did not work):</p>
      <pre><font color="#863266">| c |
c _ VectorGraphicsPasteUpMorph new openInWorld.
c addMorph: (StringMorph new contents: 'Hello')</font></pre>
    </blockquote>
    <br>
    You need to set a TrueType font. VectorGraphicsEngine can not use
    StrikeFonts.<br>
    <br>
    <blockquote cite="mid:2a833910-7ffb-36ab-608e-fa853917279a@drgeo.eu"
      type="cite">
      <p>Thanks!</p>
      <p>Hilaire</p>
      <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://pouet.chapril.org/@hilaire">https://pouet.chapril.org/@hilaire</a></pre>
    </blockquote>
    <br>
    Cheers,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
  </body>
</html>