Nice! I addd this as #example method to TxAthensLayoutView.
 
Gesendet: Mittwoch, 06. April 2016 um 17:20 Uhr
Von: "Igor Stasenko" <[email protected]>
An: "Pharo Development List" <[email protected]>
Betreff: Re: [Pharo-dev] TxText model
btw,
 
if you wanna feel a difference, why we wanted vector based rendering, by yourself, open:
 
Morph comment asText asMorph openInSceneView
 
and then
 
| sceneView view |
sceneView := AthensSceneView new.
view := TxAthensLayoutView on: Morph comment asTxModel extent: 400@400.
 
sceneView scene: view.
sceneView openInWindow 
 
 
and try zooming it in and out with mouse wheel.
 
 
 
On 6 April 2016 at 17:58, Igor Stasenko <[email protected]> wrote:
 
 
On 6 April 2016 at 17:07, Nicolai Hess <[email protected]> wrote:
 
 
2016-04-06 10:56 GMT+02:00 Igor Stasenko <[email protected]>:
 
 
On 6 April 2016 at 11:36, Nicolai Hess <[email protected]> wrote:
 
 
Thanks Igor.
Maybe some more Info? (I don't have much experience with this and don't fully understand what is missing).
 
 
1. No support for vector graphics
 
I know some parts of Athens (with Cairo font renderer and how it is used in TxText) but at the moment
rendering a TextMorph in Athens works:
Morph comment asText asMorph openInSceneView
 
Sorry, missed to reply to that important point.
It works because one good soul spent effort and helped me to finish  implementation of a wrapper for Morph, to be able to render any morph into Form, and then render Form
on Athens surface.
 
Nah, actually it works a bit different. Many (Form)Canvas methods are reimplemented on Athens API. But yes, I used some hacks as well.
 
 
Didn't knew.
Aha.. i see AthensCanvasWrapper. 
Ohh.. that's so much pain :)
 
 
So, that is why it 'works' :)
 
 
--
Best regards,
Igor Stasenko.
 
 
--
Best regards,
Igor Stasenko.
 
 
--
Best regards,
Igor Stasenko.

Reply via email to