On Wed, 4 Feb 2009 06:17:00 -0800 Mikael Liljeroth <[email protected]>
said:

> Hi, I have a question regarding Evas' font rendering.
> 
> My engine is using the evas_common_font_draw to draw the font. The problem
> is that even though I have specified an absolute position for my text object
> the resulting glyphs are rendered at an 'incorrect' y-position causing parts
> of the glyphs to be cut. It only happens for small font sizes.
> 
> It seems as if the resulting y destination of a glyph sometimes is one or
> two pixels outside the clip, i.e. the calculated dy < ext_y, and therefore
> that pixelrow is skipped. So if I have placed my text object at y=30, some
> glyphs' dy < 30 and therefore clipped, which doesn't look very good.
> 
> Do you have any ideas? My current solution to this problem is to use a
> custom font drawing function that offsets the glyphs to fit within the clip,
> but I would like to know if this is a bug or if it is the desired behaviour
> of evas_common_font_draw?
> 
> (ps: I am using edje to create my text object with align 0 0).

this depends on the font really - there are a lot of fonts when you query them
for max ascent/descent - they dont report these correctly AND the draw outside
these bounds, thus the clipping happens. there is very little you can do about
it except "use better quality fonts" :)

> /Mikael
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to