<div dir="ltr"><div>> If you have a very well defined use case, you might be able to get away 
with accessing glyphs by their index in the font directly. For this, you
 could inspect what ttcDescription returns and see if its glyphs field 
contains the ligatures you're looking for.</div><div>  <br></div><div>Thanks Tom. I don't know much at all about Fonts in any deep way, so this is a good start. I'll let you know if I have any success<br></div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 30, 2020 at 2:22 PM Beckmann, Tom <<a href="mailto:Tom.Beckmann@student.hpi.uni-potsdam.de">Tom.Beckmann@student.hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Eric,<br>
<br>
I just tried with a Devanagari font, and this was able to return a form for me:<br>
<br>
((TextStyle named: #NotoSansDevanagari) fontOfSize: 24) ttcDescription renderGlyph: 2327 height: 30 fgColor: Color white bgColor: Color black depth: 32<br>
<br>
where 2327 is the unicode codepoint. Of course, as Tobi said, we do not support shaping (so no ligatures). If you have a very well defined use case, you might be able to get away with accessing glyphs by their index in the font directly. For this, you could inspect what ttcDescription returns and see if its glyphs field contains the ligatures you're looking for.<br>
<br>
Best,<br>
Tom<br>
________________________________________<br>
From: Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> on behalf of Tobias Pape <<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>><br>
Sent: Thursday, April 30, 2020 1:58:12 PM<br>
To: The general-purpose Squeak developers list<br>
Subject: Re: [squeak-dev] TrueTypeFont and Unicode Characters<br>
<br>
Hi<br>
<br>
> On 30.04.2020, at 13:49, Eric Gade <<a href="mailto:eric.gade@gmail.com" target="_blank">eric.gade@gmail.com</a>> wrote:<br>
><br>
> Thanks Marcel.<br>
><br>
> I have used the specified Font Importer tool now, but am still having the same issue.<br>
<br>
I'm not sure we are actually loading all glyphs.<br>
Also note, that nothing in the font (like substitiution tables) are actually supported :/<br>
sorry.<br>
<br>
Best regards<br>
        -Tobias<br>
<br>
><br>
> On Thu, Apr 30, 2020 at 3:43 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>> wrote:<br>
> Hi Eric!<br>
><br>
> > I have "imported" this font using the FileList tool and it does appear as a TextStyle<br>
><br>
> Please use the Font Importer to import such fonts. You can find it in the Tools menu.<br>
><br>
><br>
><br>
> Best,<br>
> Marcel<br>
>> Am 30.04.2020 04:22:12 schrieb Eric Gade <<a href="mailto:eric.gade@gmail.com" target="_blank">eric.gade@gmail.com</a>>:<br>
>><br>
>> Hello,<br>
>><br>
>> I am trying to load a particular TrueTypeFont that represents the Cuneiform signs in the Cuneiform Unicode block.<br>
>> You can find some information on this page.<br>
>><br>
>> Specifically, I'm attempting to work with the Neo-Assyrian font on that page ('Assurbanipal.ttf' in the zip file). I have also tried the Old Babylonian fonts with similar results.<br>
>><br>
>> I have "imported" this font using the FileList tool and it does appear as a TextStyle. However, if I attempt to run:<br>
>><br>
>> ```<br>
>> m := TextMorph new<br>
>> beAllFont: ((TextStyle named: 'Assurbanipal') fontOfSize: 36);<br>
>> backgroundColor: Color white.<br>
>><br>
>> signString := (Unicode value: 16r12038) asString.<br>
>> m contents: signString.<br>
>><br>
>> m openInHand.<br>
>> ```<br>
>><br>
>> I get a TextMorph that appears blank. Either I am doing something incorrectly or the system cannot render the glyph at that code point (which should be the sign "AŠ"). Any ideas?<br>
>> --<br>
>> Eric<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Eric</div></div></div>