Closed panVag closed 2 years ago
Hi @panVag,
The string uses pango markup, so you need eg.: "M&M"
, just like HTML. See:
https://docs.gtk.org/Pango/pango_markup.html
But ... please don't use vips_call()
! It's an internal API, it's never been documented or supported, and it's going away very soon. Please use php-vips
instead.
Hi @jcupitt and thanks for your prompt answer.
I do use php-vips, I just tracked the issue to vips_call
that's why I though I should open an issue to this repo.
I managed to include ampersands using the HTML entity representation of the character, but it's funny it doesn't work for all HTML entities. For example,
will still throw an error.
Ah, OK, that's good.
The main API docs for vips_text()
have some more information.
https://www.libvips.org/API/current/libvips-create.html#vips-text
Hello.
The following calls will return
-1
for no apparent reason:Seems like the
&
breaks something.