[cairo] scale with text

Tobias Ceglarek dev at ceglarek.org
Sat Feb 17 05:22:05 PST 2007


hello folks,

i have made a little text editor with cairo. the user can type in text
in a defined rectangular area, wich is marked by a color.

it works fine. but if i scale the whole thing before drawing the cairo
elements:

ctx.scale(3.0,3.0)
...
ctx.show_text(str)
...

, i recognize that the text is not scaled correctly. it could be that it
overlaps the marked area (even if it has not overlapped before).

how can i scale text correctly?

e.g. is it possible to convert the text to a path?

regards,

prinz igor



More information about the cairo mailing list