[Cuis-dev] Pen error

Mark Volkmann r.mark.volkmann at gmail.com
Sat Oct 5 15:01:00 PDT 2024


The following example code found in a comment in the Pen method
print:withFont: results in the error MessageNotUnderstood:
TrueTypeFont>>glyphAt:

Display restoreAfter: [
    Pen new squareNib: 2;
        color: Color red;
        turn: 45;
        print: 'The owl and the pussycat went to sea
in a beautiful pea green boat.'
        withFont: FontFamily defaultFamilyAndPointSize
]

To install the Pen class, clone the
https://github.com/Cuis-Smalltalk/Morphic repository and evaluate Feature
require: 'Pen'.

Do I need to use a non-TrueType font in order for this to work?

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241005/e18c93e2/attachment.htm>


More information about the Cuis-dev mailing list