<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Yes, we could do something like that. But each TTFontDefinition is
    "atomic": it has a big IntegerArray and a bigger Float32Array. Any
    attempt to use the font would load it back in memory. We'd need to
    understand better what is the problem we're trying to solve, to see
    if this would be a good solution.<br>
    <br>
    On 12/16/2022 2:10 AM, Luciano Notarfrancesco via Cuis-dev wrote:
    <blockquote
cite="mid:CAL5GDyp5eZ1jOQeU=hjMk=N4LtFtNANHn6AtS=OqY5XLAxSK5g@mail.gmail.com"
      type="cite">
      <div dir="auto">Juan, have you considered loading the fonts
        incrementally as they are needed instead of all at once? I don’t
        see an easy way to do it, but maybe you gave it some thought
        already.</div>
      <div dir="auto">Another option is to unload the font data to disk
        and load it as it’s needed. I did this before for a
        text-to-speech system that used a diphones database. I first
        loaded all in memory and then saved them on disk using image
        segments. Then whenever a diphone is needed I loaded it and
        referenced it weakly (like WeakArray with: diphone), so later if
        it is not used it can be automatically garbage collected.
        Loading from disk with image segments is very fast, it worked in
        real time with small memory footprint.</div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, 15 Dec 2022 at 19:52
            Juan Vuletich via Cuis-dev <<a moz-do-not-send="true"
              href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</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;">
            <div bgcolor="#ffffff" text="#000000"> Most likely it is
              TrueType fonts that are using a lot of memory.<br>
              <br>
              HTH,<br>
              <br>
              On 12/15/2022 8:12 AM, Hilaire Fernandes via Cuis-dev
              wrote:
              <blockquote type="cite">
                <p><font style="color: rgb(0, 0, 0);" size="4">Another
                    one to condense the change file, but you have to
                    remove the inform morph after:</font></p>
                <p><font style="color: rgb(0, 0, 0);" size="4">   
                    Smalltalk condenseChanges.<br>
                        "Remove all morphs"<br>
                        self runningWorld doOneCycleNow.<br>
                        (UISupervisor ui submorphs reject: [:aMorph |
                    aMorph is: #TaskbarMorph]) do: [:each | each
                    delete].</font><br>
                </p>
                <pre style="font-family: monospace;" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" href="http://drgeo.eu" target="_blank" style="font-family: monospace;">http://drgeo.eu</a>
<a moz-do-not-send="true" href="http://blog.drgeo.eu" target="_blank" style="font-family: monospace;">http://blog.drgeo.eu</a></pre>
              </blockquote>
              <br>
              <br>
              <pre style="font-family: monospace;" cols="72">-- 
Juan Vuletich
<a moz-do-not-send="true" href="http://cuis.st" target="_blank" style="font-family: monospace;">cuis.st</a>
<a moz-do-not-send="true" href="http://github.com/jvuletich" target="_blank" style="font-family: monospace;">github.com/jvuletich</a>
<a moz-do-not-send="true" href="http://researchgate.net/profile/Juan-Vuletich" target="_blank" style="font-family: monospace;">researchgate.net/profile/Juan-Vuletich</a>
<a moz-do-not-send="true" href="http://independent.academia.edu/JuanVuletich" target="_blank" style="font-family: monospace;">independent.academia.edu/JuanVuletich</a>
<a moz-do-not-send="true" href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank" style="font-family: monospace;">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank" style="font-family: monospace;">linkedin.com/in/juan-vuletich-75611b3</a>
<a moz-do-not-send="true" href="http://twitter.com/JuanVuletich" target="_blank" style="font-family: monospace;">twitter.com/JuanVuletich</a></pre>
            </div>
            -- <br>
            Cuis-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
            <a moz-do-not-send="true"
              href="https://lists.cuis.st/mailman/listinfo/cuis-dev"
              rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>