[cairo-bugs] [Bug 5495] Need cairo_scaled_font_text_extents

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 9 12:32:43 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5495          
     




------- Additional Comments From cworth at cworth.org  2006-01-10 07:28 -------
(In reply to comment #2)
> So the more limited it is, the more people will use Pango or another real text
> rendering engine, and that makes their applications much more useful to the world.

OK. You, Owen, and Keith have all raised the same concern about this function. I
fold. I won't add it, and we can all rest assured that people won't mistake
cairo's toy API for anything but a toy.

> cairo_public void
> cairo_scaled_font_text_extents (cairo_scaled_font_t   *scaled_font,
> 				const char            *utf8, 
> 				cairo_text_extents_t  *extents);
> 
> Like cairo_scaled_font_glyph_extents, and I'd say it should use (0,0) as (x,y),
> but that's your decision.

As a rule, I do like fewer arguments rather than more. But I am a bit concerned
that there might be a missing x,y offset here. There's no cairo_t here so the
user couldn't just work around it with something like cairo_translate, right?

But I also put a lot of trust in you as one of the primary users of this API.
Are you quite convinced that nobody would ever need anything but (0,0) here?
          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list