[cairo] How to change Attribute of specific position

mhao1999 at live.cn mhao1999 at live.cn
Thu Sep 23 10:09:04 UTC 2021


I have a string "The" of 3 chars, and insert 3 AttrColor: red, green, blue in sequence.

After insertion, I want to change the second attribute, but I googled a lot and could not find a method to do that,

it seems Pango::AttrList does not support subscript operator, also I tried AttrIter and AttrList.change, but don't know how to get it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210923/c7bf5104/attachment-0001.htm>


More information about the cairo mailing list