<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>There might also be variable-width fonts similar to "Wingdings" that might assign custom icon to characters and could have the same width for $. and $w by accident. :P But Wingdings itself is not affected, I have checked.</p>
<p><br>
</p>
<p>By the way, maybe you already saw this, but this is how some other environments test this: <a href="https://stackoverflow.com/a/49299276/13994294" class="OWAAutoLink" id="LPlnk796646" previewremoved="true">https://stackoverflow.com/a/49299276/13994294</a></p>
<p><br>
</p>
<p>And for TrueType fonts, there appears to be optional metadata about monospacing: <a href="https://stackoverflow.com/a/43178653/13994294" class="OWAAutoLink" id="LPlnk421793" previewremoved="true">https://stackoverflow.com/a/43178653/13994294</a></p>
<p>But we don't seem to have easy access to this post table and it's probably not overly important. :D</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</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 Taeumel, Marcel<br>
<b>Gesendet:</b> Montag, 7. Februar 2022 21:12:23<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] The Trunk: Graphics-mt.466.mcz</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
> <span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px">How reliable can such a check be? :o</span>
<div><span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px"><br>
</span></div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px">You tell me. :-) It would break if both characters match the fallback glyph. xD</span></div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px"><br>
</span></div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px">Best,</span></div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;font-size: 16px">Marcel</span></div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 06.02.2022 19:22:37 schrieb Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif">
<p>How reliable can such a check be? :o</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>
<b>Gesendet:</b> Montag, 24. Januar 2022 11:24:58<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org<br>
<b>Betreff:</b> [squeak-dev] The Trunk: Graphics-mt.466.mcz</span>
<div> </div>
</div>
</div>
<span style="font-size: 10pt"><span style="font-size: 10pt">
<div class="PlainText">Marcel Taeumel uploaded a new version of Graphics to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Graphics-mt.466.mcz">http://source.squeak.org/trunk/Graphics-mt.466.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Graphics-mt.466<br>
Author: mt<br>
Time: 24 January 2022, 11:24:34.965852 am<br>
UUID: d9911a4f-0e24-cc42-9144-457e9ff9960e<br>
Ancestors: Graphics-mt.465<br>
<br>
Adds a query to check whether a font has fixed-width glyphs. User terminology similar to TextStyle class >> #defaultFixed.<br>
<br>
=============== Diff against Graphics-mt.465 ===============<br>
<br>
Item was added:<br>
+ ----- Method: AbstractFont>>hasFixedWidth (in category 'testing') -----<br>
+ hasFixedWidth<br>
+        "Answer whether the receiver is a monospaced/fixed-width/non-proportional font. See TextStyle class >> #defaultFixed."<br>
+ <br>
+        ^ (self widthOf: $.) = (self widthOf: $w)!<br>
<br>
<br>
</div>
</span></span></div>
</blockquote>
</div>
</div>
</body>
</html>