[cairo] pango+cairo how to get position of each character?

mhao1999 at live.cn mhao1999 at live.cn
Sat May 8 08:32:04 UTC 2021


For example, I have a text string "hello" and a truetype font file, and I want to apply different color to different character, currently I cannot find a way to implement it.

My thought is:
first get each position of each character from pango/cairo, then if no api to render one by one, I can use freetype library to render each glyph, does it work?

Thanks for any idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210508/cf6cba4e/attachment.htm>


More information about the cairo mailing list