Re: Drawing without going through the layout (gtkmm, pangomm)



On Tue, Oct 7, 2008 at 4:55 PM, Behdad Esfahbod <behdad behdad org> wrote:
> Mark Tilford wrote:
>> Is there any documentation related to using Pango to draw text without
>> going through the layout engine?
>> All I need is:
>> Given a string and font:
>> - get the measurements of that string in that font
>> - draw that string in that font
>
> Check the docs for pango_cairo_show_glyph_string().  Not sure what the pangomm
> equivalent of that is.

There doesn't appear to be any wrapper for that in pangomm, cairomm,
gtkmm, or gdkmm.  Well, I can unwrap the arguments for that one call
if need be.

But nothing appears.  (Gdk::Drawable::draw_glyph_string doesn't do
anything either.)


Maybe I'm not initializing something properly.  Is there a nontrivial
example program which displays a glyph string?  (pangomm preferred,
but I don't mind if it's straight pango; I can probably convert it
easily enough.)


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