[Cuis-dev] Adding Single Font / Morphic Update
Eric Gade
eric.gade at gmail.com
Fri Jan 24 14:45:21 PST 2020
Thanks for sending along the message, Phil.
Juan, just so I'm clear on this: when I boot up a fresh Cuis image, it's
already using VectorGraphics to display text in the system? I'm asking
because I was working in Squeak last week for a couple of days, then opened
up Cuis and for whatever reason felt that the text looked so much crisper
in Cuis. I was kind of surprised.
As for the rest of it, sounds good. I might make a changeset where there is
a single method that can load a single font into the system from a
filepath. At the moment it seems like you can only pass a directory.
On Fri, Jan 24, 2020 at 3:45 PM Phil B via Cuis-dev <cuis-dev at lists.cuis.st>
wrote:
> Eric,
>
> Here's Juan's full reply...
>
> On Thu, Jan 23, 2020 at 2:15 PM Juan Vuletich via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> Hi Eric,
>>
>> On 1/21/2020 10:22 PM, Eric Gade via Cuis-dev wrote:
>> > Hi all,
>> >
>> > It's been a while since I opened up Cuis, so forgive me if I'm out of
>> > the loop a bit. I have 2 unrelated questions:
>> >
>> > 1. How can I add a single font (otf) to the available fonts in the
>> system?
>>
>> Cuis can handle TrueType .ttf fonts, but not OpenType .otf fonts right
>> now. Maybe you can find a TrueType version of the font you need, or
>> maybe you can convert it. Most likely, extending TrueType support to
>> also handle OpenType is not a big deal if you want to give it a try.
>>
>> > 2. What is the status of Morphic 3 and vector graphics?
>>
>> With an updated Cuis setup, do:
>>
>> World / Preferences... / Load extra fonts "This installs TrueType and
>> VectorGraphics"
>> World / Preferences... / Set font... / CMU Concrete "or any other but
>> DejaVu (that is a Bitmap Font). DejaVu Sans is also ok"
>> If you have any FileList open, close it, and open it again if you want
>> (FileList is not updating all the panes to use the new default font).
>>
>> Now all the text you see is done using instances of TrueTypeFont. All
>> the glyphs were built using VectorGraphics. If you want to see the whole
>> desktop as drawn by the VectorGraphics engine, evaluate:
>>
>> self runningWorld backgroundImage displayAt: 0 at 0. (VectorCanvas onForm:
>> Display) fullDraw: self runningWorld. Display copy inspect.
>>
>> The high performance OpenCL implementation of the VectorGraphics engine
>> is in the works. As I usually say at this time of the year, maybe this
>> is the year it will become usable enough to completely replace
>> BitBltCanvas and BitBltCanvasEngine... You can see the commits that
>> affect VectorGraphics.pck.st in GitHub, and see that I'm actually
>> working on it.
>>
>> > Thanks
>> >
>> > --
>> > Eric
>>
>> Cheers,
>>
>> --
>> Juan Vuletich
>> www.cuis-smalltalk.org
>> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
>> https://github.com/jvuletich
>> https://www.linkedin.com/in/juan-vuletich-75611b3
>> @JuanVuletich
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
--
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200124/f1b28690/attachment.htm>
More information about the Cuis-dev
mailing list