Re: [gtkmm] problems with pango



Am Son, 2002-10-27 um 16.40 schrieb Morus Walter:
> 
> I would like to make two aditional remarks on the methods I used
> for low level text rendering:
> 
> - the method Gdk::Drawable::draw_glyphs, which is used for low level
>   text rendering, takes a c pointer PangoGlyphString* glyphs instead of
>   a Pango::GlyphString object.
>   This is not a problem since one can use the gobj method of
>   Pango::GlyphStringto get the c pointer from the object, but it looks
>   a bit inconsistent to me.
> 
>   void  draw_glyphs (const Glib::RefPtr<const GC>& gc, 
>   const Glib::RefPtr<const Pango::Font>& font, int x, int y, 
>   PangoGlyphString* glyphs)
> 
> - similar point for pango_shape where no c++ wrapper exists.
>   Again one can use the c function directly by using the gobj methods.
> 
>   void pango_shape (const gchar      *text,
>                     gint              length,
>                     PangoAnalysis    *analysis,
>                     PangoGlyphString *glyphs);

OK.  Thanks a lot for reporting the problem.

> Of course both functions are needed for low level text rendering with pango 
> only and this is rather esoteric and discouraged for most uses anyway.
> 
> So I wouldn't mind, if you decide not to do anything about this.

Well, we'll probably decide to do nothing about this for gtkmm 2.0.0,
but, esoteric or not, I'd certainly like to see this fixed in 2.2.

It'd be very nice if you could open a bug on bugzilla, in order to make
sure we won't forget it.

Cheers,
--Daniel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]