On Wed, 2006-03-29 at 16:30 +0200, Richard Boaz wrote:
> hi,
>
> i have no idea if i do this correctly myself (comments?), but the way
> i have achieved this is with the following code:
>
> int fontSIZE(char *str, gboolean type)
type is not a boolean.
> PangoLayout *layout = pango_layout_new
hi,
i have no idea if i do this correctly myself (comments?), but the way
i have achieved this is with the following code:
int fontSIZE(char *str, gboolean type)
{
int width, height, ret;
PangoFontDescription *desc;
PangoLayout *layout = pango_layout_new (gtk_widget_get_pango_context
(widget
Hello,
I need to know the size of chars(width,height) written in a text view,
so I could calculate the number of "words" per line I could write.
So I downloaded "gnome-terminal" source code to see if I could
understand how can it do it, but I'm little confused.
I just want to know the width and he