[Pharo-project] Some news about Athens
I added a text support for Cairo backend.. unfortunately i was unable to force it rendering with subpixel AA, Cairo completely ignoring settings i passing to it (looks like i need to dig into compilation options to enable it) So, following examples contain simple code to draw text on surface: AthensCairoSurfaceExamples drawFontMetrics AthensCairoSurfaceExamples draw2Strings A following one is my current state of endless battle area with Morphic.. AthensTextRenderTest testWindowRender since morphic using absolute coordinate system, i can't make the clipping right no matter how hard i try arghhhh .. These changes are available if you load ConfigurationOfAthens v 1.4 But you might probably will unable to use it anyways ;), because NB-enabled VMs on jenkins are not yet bundled with cairo library.. I will do a pass on VMs this week and let you know when this stuff will be readily available for download and play with. So many things stacked on top of each other.. it is a pain the ass when something on base level breaks. -- Best regards, Igor Stasenko.
ah, yes.. i forgot to say: - no strike fonts for Athens will be supported ever. It is simply unproductive to waste time on that. They will never work correctly, because the format how they stored in image are premultiplied subpixel 3*32-bit bitmaps. And sure thing, Cairo don't have our highly-special blit mode to render them correctly (not saying that they'll work only for 1:1 pixel grid match, and only for LCD displays, and if you offset them even by a fraction of pixel or rotate/scale, i doubt you will be able to read anything). You can draw bitmaps (forms) using Athens.. but they should be a normal RGBA 32-bit ones. -- Best regards, Igor Stasenko.
http://nvidia.fullviewmedia.com/siggraph2012/ondemand/SS106.html -- Best regards, Igor Stasenko.
Thanks Igor this is cool to see that you make progress while I fixing administrative tasks :) On Sep 3, 2012, at 4:21 AM, Igor Stasenko wrote:
ah, yes.. i forgot to say: - no strike fonts for Athens will be supported ever.
It is simply unproductive to waste time on that. They will never work correctly, because the format how they stored in image are premultiplied subpixel 3*32-bit bitmaps.
And sure thing, Cairo don't have our highly-special blit mode to render them correctly (not saying that they'll work only for 1:1 pixel grid match, and only for LCD displays, and if you offset them even by a fraction of pixel or rotate/scale, i doubt you will be able to read anything).
You can draw bitmaps (forms) using Athens.. but they should be a normal RGBA 32-bit ones.
-- Best regards, Igor Stasenko.
The fonts addition is excellent! Not having StrikeFont support is less good news, but I understand your position. The only reason I proposed having StrikeFont support was to ease the transition to Athens until the VMs will be properly bundled with Cairo. This will likely take a while, but the transition could start now. Is there another possibility of using a font that can be supported with Athens rendered on top of Balloon. Cheers, Doru On 3 Sep 2012, at 04:21, Igor Stasenko wrote:
ah, yes.. i forgot to say: - no strike fonts for Athens will be supported ever.
It is simply unproductive to waste time on that. They will never work correctly, because the format how they stored in image are premultiplied subpixel 3*32-bit bitmaps.
And sure thing, Cairo don't have our highly-special blit mode to render them correctly (not saying that they'll work only for 1:1 pixel grid match, and only for LCD displays, and if you offset them even by a fraction of pixel or rotate/scale, i doubt you will be able to read anything).
You can draw bitmaps (forms) using Athens.. but they should be a normal RGBA 32-bit ones.
-- Best regards, Igor Stasenko.
-- www.tudorgirba.com "No matter how many recipes we know, we still value a chef."
On 4 September 2012 06:44, Tudor Girba <tudor@tudorgirba.com> wrote:
The fonts addition is excellent!
Not having StrikeFont support is less good news, but I understand your position.
The only reason I proposed having StrikeFont support was to ease the transition to Athens until the VMs will be properly bundled with Cairo. This will likely take a while, but the transition could start now.
Is there another possibility of using a font that can be supported with Athens rendered on top of Balloon.
well, you can use standard canvas to render anything into the surface.. but of course you'll have to keep a coordinate system transforms in sync.. right now it works, if you send #asForm to cairo surface, it returns a form which using same bits for bitmap, as cairo does, so drawing using balloon canvas is possible. a different backends may not support that , of course, and sending #asForm message will just return a copy of bits currently rendered on surface. anyways, you can combine it with balloon canvas.. first render on surface, then send #asForm, and then you free to do anything with it , including drawing fonts, of course.
Cheers, Doru
-- Best regards, Igor Stasenko.
participants (4)
-
Hilaire Fernandes -
Igor Stasenko -
Stéphane Ducasse -
Tudor Girba