<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Eric,</p>
<p><br>
</p>
<p>> <span style="font-size: 12pt;">I can't seem to find MorphInspector in a current (5.3 here) image. Is this a separate package?</span></p>
<div><br>
</div>
<div>MorphInspector, FormInspector, and a bunch of other small new improvements to the inspector framework have arrived in the Squeak Trunk just a few months ago! See
<a href="http://forum.world.st/Please-try-out-Inspector-Refactoring-td5114974.html" class="OWAAutoLink" id="LPlnk94913" previewremoved="true">
http://forum.world.st/Please-try-out-Inspector-Refactoring-td5114974.html</a> and <a href="https://squeak.org/downloads/#current-trunk-image-2:~:text=Current-,Trunk,-Image" class="OWAAutoLink" id="LPlnk728708" previewremoved="true">https://squeak.org/downloads/#current-trunk-image-2:~:text=Current-,Trunk,-Image</a> :-)</div>
<div><br>
</div>
<div>> <span>I find the whole relationship between a Text and TextStyle a bit confusing, especially where it comes to setting Fonts. It appears that there are lots of different "kinds" of Fonts, and there's a good amount of indirection so it's difficult to
 determine which kind of fonts (StrikeFont? TTFont?) "live" and how to see what's available and pick programmatically. Is there a good primer somewhere on Text/TextStyle?</span></div>
<div><span><br>
</span></div>
<div><span>These are good questions others can probably answer better than I could do.</span></div>
<div><span>This is all I can tell you:</span></div>
<div>
<ol style="margin-bottom: 0px; margin-top: 0px;">
<li><span>Font rendering in Squeak is difficult and the default font (DejaVu Sans) appears to be the only one that looks kind of nice in all sizes. I almost never choose a different font.</span></li><li><span>To change the font in a Text, use something like:<br>
<div>'foo' asText</div>
<div><span style="white-space:pre"></span>addAttribute: (TextFontReference toFont: (StrikeFont</div>
<div><span style="white-space:pre"></span>familyName: 'Darkmap DejaVu Sans'</div>
<div><span style="white-space:pre"></span>pointSize: 20));</div>
<div><span style="white-space:pre"></span>openAsMorph</div>
</span></li></ol>
</div>
<div><span><br>
</span></div>
<div><span>> <span>Also -- how can I disable editing of a TextMorph?</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>See TextMorph >> #readOnly: or also Morph >> #lock to disable any interaction.</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>Best,</span></span></div>
<div><span><span>Christoph</span></span></div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Eric Gade <eric.gade@gmail.com><br>
<b>Gesendet:</b> Mittwoch, 2. September 2020 17:01:45<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Inspector Custom Value Panes & Related</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Christoph,<br>
</div>
<br>
<div class="gmail_quote">
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
On Tue, Sep 1, 2020 at 7:32 PM Christoph Thiede <<a href="mailto:christoph.thiede@student.hpi.uni-potsdam.de">christoph.thiede@student.hpi.uni-potsdam.de</a>> wrote:<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
for displaying graphics in an inspector, have a look at MorphInspector (screenshot) or FormInspector (pixels). Custom interactive fields are not (yet?) supported, but in theory, you could subclass Inspector and override the relevant<span id="gmail-m_1857641931170179193ms-outlook-android-cursor"></span>
 toolbuilder methods. <br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I can't seem to find MorphInspector in a current (5.3 here) image. Is this a separate package?<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
Regarding to your second question - why don't you use a TextMorphs? The composition of different formatting styles applied to a string is just what makes up a Text</div>
</div>
</blockquote>
<div><br>
</div>
<div>Aha, yes, I think I've looked into this before. I find the whole relationship between a Text and TextStyle a bit confusing, especially where it comes to setting Fonts. It appears that there are lots of different "kinds" of Fonts, and there's a good amount
 of indirection so it's difficult to determine which kind of fonts (StrikeFont? TTFont?) "live" and how to see what's available and pick programmatically. Is there a good primer somewhere on Text/TextStyle? Also -- how can I disable editing of a TextMorph?
<br>
</div>
<div><br>
</div>
<div>Thanks again<br>
</div>
</div>
<br>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>Eric</div>
</div>
</div>
</div>
</div>
</body>
</html>