<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 8/14/2024 10:17 PM, Mark Volkmann via Cuis-dev wrote:
<blockquote
cite="mid:CAFfRWnUADKSqscVyhuJJ6fd2nG7DCM5=256yX_Q2Rt3mJ52nqg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div dir="ltr">On Wed, Aug 14, 2024 at 9:39 AM <<a
moz-do-not-send="true" href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">On 2024-08-13 17:16, Mark Volkmann via
Cuis-dev wrote:<br>
<br>
> Should I be able to use Unicode characters in morphs
like this?<br>
> <br>
> (LabelMorph contents: '🗑') openInHand.<br>
> <br>
> When I paste the trash can Unicode character into a
Workspace, it <br>
> appears as a rectangle.<br>
> I believe that means it doesn't recognize the
character.<br>
> It also renders as a rectangle instead of the trash can
character.<br>
<br>
The default font lacks many glyphs -- e.g. for Chinese and
apparently <br>
for trash cans.<br>
<br>
Try importing and setting a TrueType Font which has this
glyph.<br>
</blockquote>
<div><br>
</div>
<div>Thanks! I found that the "Kurinto Sans" font contains the
wastebasket Unicode character and I installed it.</div>
<div>The attached screenshot shows an example.</div>
<div><br>
</div>
<div>I want to use that font in a <font face="monospace">PluggableButtonMorph</font>.</div>
<div>But here is the <font face="monospace">font:</font>
method in that class:</div>
<div><br>
</div>
<font face="monospace">font: someFont<br>
PopUpMenu inform: 'You can''t set this' </font><br>
</div>
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">Yikes! I wonder why we're not allowed
to set the font for that kind of morph.</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div><font face="arial, helvetica, sans-serif">R.
Mark Volkmann</font></div>
<div><span style="font-size: 12.8px;"><font
face="arial, helvetica, sans-serif">Object
Computing, Inc.</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
You can. World / New morph... / From Alphabetical List /
PluggableButtonMorph. Now open a halo on one of the inner
PluggableButtonMorphs. Open an inspector. In the evaluation pane,
evaluate:<br>
<br>
self roundButtonStyle: false.<br>
(FontFamily promptUser: self fontToUse familyName) ifNotNil: [
:fontFamily |<br>
self label: '🗑' font: (fontFamily atPointSize: self
fontToUse pointSize) ].<br>
<br>
and select 'Kurinto Sans'.<br>
<br>
Works nicely.<br>
<br>
HTH,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>