PangoFont* and GdkFont
| From: | Marc Quinton | Date: | Tue, 10 Oct 2006 12:18:03 +0000 |
| Subject: | PangoFont* and GdkFont | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7350@lists.php.net to get a copy of this message | ||
hello,
- is there a way to convert PangoFont* to a Gdkfont ?
- some methods are missing in PangoLayout to get text information
(size, extents),
- GtkFontSelector give me a font_name not compatible with Gdkfont
style constructor,
but only with PangoFontDescription constructor.
So, I don't know how to write a text in a drawing area, with a "selected" font
Here is actual method coverage error for PangoLayout class.
PangoLayout methods
PangoLayout::set_markup_with_accel: unknown type 'gunichar'
PangoLayout::get_log_attrs: unknown type 'PangoLogAttr**'
PangoLayout::index_to_pos: unknown type 'PangoRectangle*'
PangoLayout::get_cursor_pos: unknown type 'PangoRectangle*'
PangoLayout::move_cursor_visually: unknown type 'int*'
PangoLayout::xy_to_index: unknown type 'int*'
PangoLayout::get_extents: unknown type 'PangoRectangle*'
PangoLayout::get_size: unknown type 'int*'
PangoLayout::get_pixel_size: unknown type 'int*'
PangoLayout::get_line: unknown type 'PangoLayoutLine*'
PangoLayout::get_lines: unknown type 'GSList*'
- get_size() returns a ($w, $h) tupple,
- get_extents return a PangoRectangle type, ($x, $y, $w, $h) array.
any idea ?