[ Version ( since = "1.8" ) ]
public static Attribute new_with_data (Rectangle ink_rect, Rectangle logical_rect, void* data, owned AttrDataCopyFunc? copy_func)
Creates a new shape attribute.
Like [[email protected]], but a user data pointer is also provided; this pointer can be accessed when later rendering the glyph.
ink_rect |
ink rectangle to assign to each character |
logical_rect |
logical rectangle to assign to each character |
data |
user data pointer |
copy_func |
function to copy |
destroy_func |
function to free |
the newly allocated `PangoAttribute`, which should be freed with [[email protected]] |