<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 1/14/2021 10:57 AM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote cite="mid:cffc9054-bc2f-0097-5777-2c2c39bdb1a9@drgeo.eu"
      type="cite">
      <pre><font color="#a11818">addLabel: string font: font centeredAt: position rotationDegrees: angle
"Add a label top-centered at position and rotated of angle degrees"
    | p label |
    p _ position - (position normal * (font widthOfString: string asString) / 2). 
    label _ LabelMorph contents: string font: font.
    label rotation: (90 - angle) degreesToRadians.
    self addMorph: label.
    label morphPosition: p.
    ^ label
</font></pre>
    </blockquote>
    <br>
    Thanks Hilaire!<br>
    <br>
    I added this as an extension method in VectorGraphics, as it won't
    work without it.<br>
    <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>