Skip to content

Getting a "text: invalid markup in text (Vips::Error)" error when adding a simple "&" to the annotate example #342

Answered by jcupitt
luctus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @luctus,

The text operator supports pango markup, so yes, you need eg. &amp;. You'll need to escape < and > as well.

https://docs.gtk.org/Pango/pango_markup.html

https://www.libvips.org/2021/06/04/What's-new-in-8.11.html#full-colour-text-rendering

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by luctus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants