GNOME Bugzilla – Bug 517874
the pangomm docs for Attribute::set_start_index missing important detail
Last modified: 2008-03-14 16:43:23 UTC
The documentation for pangomm binding for Attribute::set_start_index and Attribute::set_end_index do not call out that the parameter values should be a byte offset into the UTF-8 string (instead of a logical character index). This is called out in the main pango docs. Moving this detail to the pangomm docs would have been very useful to me :)
Could you give me a URL for the relevant text in the pango documentation, ideally on library.gnome.org, please?
Under http://library.gnome.org/devel/pango/stable/pango-Text-Attributes.html#PangoAttribute Members start_index and end_index are documented with "(in bytes)".
Fixed in svn trunk. Thanks. 2008-03-14 Murray Cumming <murrayc@murrayc.com> * pango/src/attributes.hg: _MEMBER_SET for end_index and start_index: Mentin that the indices are in bytes, as now mentioned in the C documentation. Bug #517874 (Steve Splonskowski)