[squeak-dev] The Trunk: TrueType-mt.52.mcz

tim Rowledge tim at rowledge.org
Tue Aug 20 17:00:24 UTC 2019



> On 2019-08-20, at 9:56 AM, Tobias Pape <Das.Linux at gmx.de> wrote:
> 
> 
>> On 20.08.2019, at 18:54, tim Rowledge <tim at rowledge.org> wrote:
>> 
>> 
>> 
>>> On 2019-08-20, at 6:35 AM, commits at source.squeak.org wrote:
>>> Squeak's management of fonts and text styles and text-font changes and text-font references is kind of ugly. :-)
>> 
>> That is very much an understatement. I wish we could do better
> 
> If I just had some timeā€¦

Yeah, I hear you.

One simple approach you could try playing with is the code I did for NuScratch. That (and it was very Raspberry Pi focussed, so may be a problem elsewhere)used Cairo/Pango plugins to render strings to a form and then copied the form to the display. Now it's important to remember that this was almost entirely for small chunks of text, rarely more than a few words, but even on an original Pi it was perfectly good performance. You'd find the code in the NuScratch package on squeaksource (in SM too) and the unicode plugin and maybe the scratch plugin.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- Forgot to pay his brain bill.




More information about the Squeak-dev mailing list