Re: ChangeLog Demon and 'Standard - Outline' (was Re: Dia ChangeLog reportfor 2007-11-06 13:01:39 UTC (Tue 06 Nov))



On 10.11.2007 08:12, Lars Clausen wrote:
Hans Breuer said:
[...]
Unfortunately I dont know a way to make the filling respect holes within
the glyphs. The path data delivered by cairo just consist out of different
outlines, the first of a glyph usually the outer shape. When that is
filled
for a glyph like '#' the following hole filling does not matter anymore.

It may be possible to substract overlapping outlines, but cairo does not
give any hint on that either so some beziergon 'collision detection' would
be required. But even with this information reconstructed the best Dia's
beziergon currently can do is 'blanking'.

The EPS w/ Pango fonts does the right thing, so we can get the correct
data if we need to.  
I don't hink that it's the code within Dia which makes the difference but
the underlying glyph vectorization (or better the lack of content provided
by cairo). But maybe there is more help available from the cairo people [1].

While the beziergon does allow holes, it only has one
curve, so I guess we're out of luck.  
I started to experiment with the pathes. Just connecting the endpoints for
the different pathes *when filling* may help. Unfortuanetly the code in
cairo does not provide one path with move_to in between per glyph but
completely separated pathes.

While having rotated text is nice,
On purpose I did not call it Text, but Outline ;) At least if one is not
filling the outlines it mostly works (there are glitches with the outline
precision on windows). But it was never meant to replace proper (rotated)
text rendering.

I'm not sure I like having the letters a, b, d, e, g, o, p, q, and 
The workaround is easy - disallow filling ;)

r wrongly printed.
What's wrong with 'r' or do you mean 'R' - but then there are a lot more
glyphs with holes which are currently *filled* too much ...

        Hans

[1] http://lists.cairographics.org/archives/cairo/2007-November/011943.html

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]