[cairo-bugs] [Bug 25839] pathinformation of a polygon or line
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Dec 13 02:46:31 PST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=25839
--- Comment #4 from Andrea Canciani <ranma42 at gmail.com> 2010-12-13 02:46:29 PST ---
(In reply to comment #3)
> Well, I only want to write text in shapes which I have painted. So I need at a
> defined position where the text inside a shape could reach out that the text
> can begin at a new line because everything should be written inside.
>
> What's the name of the function which returns a point of a closed path? Maybe
> it could be the right thing for me.
cairo_in_fill() and cairo_in_stroke() test if a point is inside the drawn part
of a path,
but I'm afraid that they are not immediately useful for your purpose.
Vikloud solves a related problem (drawing a "cloud" of text strings without
collisions), so you might want to have a look at its source:
http://vikloud.git.sourceforge.net/
IIRC the approach used in Vikloud is checking if the text extents collide with
the colored pixels of the image.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list