<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><blockquote type="cite">On Jan 31, 2021, at 12:16 AM, gettimothy via Squeak-dev <squeak-dev@lists.squeakfoundation.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Folks,<br></div><div><br></div><div>I am diving into Unicode and resultant parts for  my WikitextParser  work and am asking for some pointers on where to look in Squeak/Morphic for how fonts interact with Morphic.<br></div><div><br></div><div>The maximum unicode character per here: <a target="_blank" href="https://jrgraphix.net/research/unicode_blocks.php">https://jrgraphix.net/research/unicode_blocks.php</a> is 16r00E007F<br></div><div><br></div><div>So, I decided to see what Character would do if I dialed it up to 11 a bit...<br></div><div><br></div><div>(16r00E007F + 16r000001) asCharacter<br></div><div><br></div><div>What this tells me is that Character just has an integer and that the display of the character associated with that integer is "delegated" to something else (which makes sense).<br></div><div><br></div><div>So, as I try to "duplicate" the displayed characters at <a target="_blank" href="https://jrgraphix.net/research/unicode_blocks.php">https://jrgraphix.net/research/unicode_blocks.php</a>  with an appropriate Font (or "Font strategy...meaning, detect the font required and load it on the fly in a particular use-case) <br></div><div>I figured I would ask for help in clarifying my presuppositions on how we get from 16r00E0041 asCharacter to 16r00E0042 asCharacter  <br></div><div><br></div><div>(get it? from A to B....heh).<br></div><div><br></div><div>to expand a bit.<br></div><div><br></div><div>I have characters that do show up in Chrome that do not show up in Squeak. I assume this only has to do with the Font not supporting that particular integer. Is this assumption correct? <br></div></div></div></blockquote><div><br></div>Yes.  Character can represent all the character codes from 0 to 2^30-1.  I think that (2 raisedTo: 30) asCharacter should raise an error on 64 bits.  It should definitely raise an error on 32 bits.<div><br></div><div>Note that in V3 we can (but should not) create Character instances with LargeInteger codes.  This is not a good idea ;-)<br><div><br><blockquote type="cite"><div dir="ltr"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div><span style="font-size: 10pt;">thanks in advance.</span></div><div><br></div><div><br></div></div><br><span></span><br></div></blockquote></div></div></body></html>