<div dir="ltr">Fredrik,<div><br></div><div>It looks like you have not received a reply yet. Does this help?</div><div><br></div><div>font: ((TextStyle named: #Atlanta ) fontOfSize: 14)<br></div><div><br></div><div>jrm</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 3:51 PM, Fredrik Alink <span dir="ltr">&lt;<a href="mailto:falink@free.fr" target="_blank">falink@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I got a nice way of creating button Morphs somewhere on the Web. However,<br>
for showing the button label it uses the StringMorph. In StringMorph I find<br>
the method “font: aFont”. Could I use that for setting the Font shown on the<br>
button? And what should I use as aFont? Doing “aFont := TextMorph new …..”<br>
is wrong. Are there other ways to get to an alternative of the default font<br>
through the StringMorph?<br>
<br>
What I did so far:<br>
<br>
*My Class instance:*<br>
        labelMorph := (ButtonElementMorph “new”)<br>
                createLabelMorph: aLabel<br>
                withEmphasis: anEmphasis<br>
                /withFont: aFont./<br>
<br>
What I found on the web – *ButtonElementMorph Class instance:*<br>
        (StringMorph contents: aLabel)<br>
                emphasis: anEmphasis;<br>
                /font: aFont./<br>
<br>
*StringMorph class instance:*<br>
        emphasis: anEmphasis.<br>
        /font: aFont/ “can I use this and what should I place here?”<br>
<br>
Thank you in advance for giving me th right direction to find a solution!<br>
<br>
Fredrik<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/How-to-set-a-Font-in-a-StringMorph-tp4848183.html" rel="noreferrer" target="_blank">http://forum.world.st/How-to-set-a-Font-in-a-StringMorph-tp4848183.html</a><br>
Sent from the Squeak - Beginners mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>