[Cuis-dev] Vector graphics questions

Vanessa Freudenberg vanessa at codefrau.net
Thu Aug 5 04:58:05 PDT 2021


On Wed, Aug 4, 2021 at 13:30 Eric Gade <eric.gade at gmail.com> wrote:

> Hi Vanessa (and others),
>
> What steps did you use to get the full Cuis display to use VectorGraphics?
> I am running a vector-enabled VM, and I can successfully load (and display)
> TrueType fonts, but when I try to run the following:
>
> ```
>
> self runningWorld backgroundImage displayAt: 0 at 0.
> (VectorCanvas onForm: Display) fullDraw: self runningWorld. "This is the line that triggers the mnu"
> Display copy inspect.
>
> ```
>
> I get an MNU about StrikeFont not understanding #fontDescription (the font
> in question appears to be DejaVu Sans). I was following the instructions
> from this doc
> <https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Documentation/VectorGraphicsAndMorphic3.md>
> that you included in your original email.
>

I just assumed that doc is outdated, since even the menu items described in
there did not match the current image. It is 2 years old so lots of things
have changed.

I actually ran into the exact same MNU  error about StrikeFont. But the
actual switching of the system font worked, and I verified it is using the
vector engine by slightly rotating a window, which otherwise would cause
ugly artifacts.

So I think this doc describes how to try the Vector engine before it was
actually integrated into Morphic.
Someone who knows the current state of affairs needs to fix the
documentation. I should have filed a GitHub issue but that was literally my
first hour with Cuis 😅

I’ve done it now:
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/issues/192

Vanessa

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210805/9f36407d/attachment.htm>


More information about the Cuis-dev mailing list