<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Tony --<div><br></div><div>Please give me 1 more day. I am almost finished refactoring TTFontReader. :-)</div><div><br></div><div>Currently, use the FontImporterTool. Or use this interface to try out a font without installing it into Squeak:</div><div><br></div><div><pre class="c-mrkdwn__pre" data-stringify-type="pre" style="box-sizing: inherit;margin-top: 4px;margin-bottom: 4px;padding: 8px;--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);font-size: 12px;line-height: 1.50001;font-variant-ligatures: none;overflow-wrap: break-word;word-break: normal;tab-size: 4;border: 1px solid var(--saf-0);border-radius: 4px;background: rgba(var(--sk_foreground_min,29,28,29),0.04);counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0;color: rgb(29, 28, 29);font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important">fontFile := '/Users/ecgade/Downloads/Santakku/SantakkuM.ttf'.
fontReader := TTFontReader parseFileNamed: fontFile.
myCoolFont := TTCFont new ttcDescription: fontReader first; pointSize: 36.0; yourself.
myCoolFont browseAllGlyphs.</pre></div><div><br></div><div>Best,</div><div>Marcel</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 17.02.2022 12:08:23 schrieb Tony Garnock-Jones <tonyg@leastfixedpoint.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hi Marcel,
<br>
<br>On 2/17/22 12:00, Marcel Taeumel wrote:
<br>> Also: The use of linked fonts (i.e. the TTCFont with a 
<br>> TTFontDescription) is currently rather slow regarding #hasGlyphOf:. I am 
<br>> working on it.
<br>
<br>This reminds me: I'm currently loading my font by some adhoc method I 
<br>discovered by trying things until they seemed to work. This seems likely 
<br>to be suboptimal.
<br>
<br>What's the recommended way to load a .ttf into the image (so that 
<br>everything is self contained in the image and fast to use)?
<br>
<br>Cheers,
<br>   Tony
<br>
<br>PS. this is how I'm loading the font:
<br>
<br>| description |
<br>description := TTFontDescription addFromTTFile: 
<br>'fonts/from-github/Roboto-Regular.ttf'.
<br>TTCFont newTextStyleFromTT: description first.
<br>TTCFont registerAll.
<br>
<br>"Note in particular that I had to use 'description first' - is that a 
<br>bug? Previously, using 'description' was the right thing to do, and 
<br>TTCFont class >> newTextStyleFromTTFile:, which I was using previously, 
<br>still expects to be able to use 'description'..."
<br></div></blockquote></div>