[Cuis-dev] Unicode in morphs
Mark Volkmann
r.mark.volkmann at gmail.com
Wed Aug 14 18:17:38 PDT 2024
On Wed, Aug 14, 2024 at 9:39 AM <ken.dickey at whidbey.com> wrote:
> On 2024-08-13 17:16, Mark Volkmann via Cuis-dev wrote:
>
> > Should I be able to use Unicode characters in morphs like this?
> >
> > (LabelMorph contents: '🗑') openInHand.
> >
> > When I paste the trash can Unicode character into a Workspace, it
> > appears as a rectangle.
> > I believe that means it doesn't recognize the character.
> > It also renders as a rectangle instead of the trash can character.
>
> The default font lacks many glyphs -- e.g. for Chinese and apparently
> for trash cans.
>
> Try importing and setting a TrueType Font which has this glyph.
>
Thanks! I found that the "Kurinto Sans" font contains the wastebasket
Unicode character and I installed it.
The attached screenshot shows an example.
I want to use that font in a PluggableButtonMorph.
But here is the font: method in that class:
font: someFont
PopUpMenu inform: 'You can''t set this'
Yikes! I wonder why we're not allowed to set the font for that kind of
morph.
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240814/9c56f14f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-08-14 at 8.16.02?PM.png
Type: image/png
Size: 22067 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240814/9c56f14f/attachment-0001.png>
More information about the Cuis-dev
mailing list