On 12 January 2013 03:16, Jesus Nuñez <[email protected]> wrote: > @Igor Thanks for the aclaration, I am quite new to pharo and I just wanted > to help with what I've seen > No problem. I need to finish that thing.. the dilemma there is that supporting old fashing text rendering is not going to show good results. Writing a new text support + layout is another piece of work, we're just started.. but it if far from finishing.
But do not confuse: you can render strings with any truetype font using Athens, but what you cannot do is to use it for rendering TextMorph(s) contents. Because TextMorph is heavily hardcoded for using balloon canvas.. with lots of optimizations and complexity. > Cheers > > > 2013/1/11 Ben Coman <[email protected]> >> >> Thanks Igor. That was exactly what I was looking for. >> >> >> Igor Stasenko wrote: >>> >>> On 10 January 2013 14:42, Ben Coman <[email protected]> wrote: >>> >>>> >>>> I need to improve the performance of a lot of text that drawn on screen >>>> while the screen is being dragged around and would like to experiment >>>> with >>>> rendering the text to a bitmap buffer then painting that onto a canvas. >>>> How >>>> might that be achieved? And from Workspace can I test this? I have >>>> been >>>> searching for a couple of hours already so thought I'd just ask. >>>> >>>> >>> >>> >>> easy. >>> >>> form := Form extent: 100@100 depth: 32. >>> >>> canvas := form getCanvas. >>> canvas drawString... whatever. >>> >>> and then: >>> >>> displayCanvas drawImage: form. >>> >>> >>> >>> >>>> >>>> cheers -ben >>>> >>>> >>> >>> >>> >>> >>> >> >> >> > -- Best regards, Igor Stasenko.
