Login  Register

Re: com.jogamp.graph.curve.opengl.TextRenderer without shader?

Posted by Sven Gothel on Aug 03, 2014; 4:35pm
URL: https://forum.jogamp.org/com-jogamp-graph-curve-opengl-TextRenderer-without-shader-tp4032687p4032700.html

On 08/03/2014 09:31 AM, aqd [via jogamp] wrote:
> Thanks! I just fixed the positioning of text with shader.

Great.

>
> But the renderer seems to have bad support with CJK fonts. Here is the result
> with Microsoft JHengHei, the default Windows font since Windows Vista:
>
>
> (some holes in glyph are unexpectedly filled)

Besides the bugs, looks great.

Yes, we have a few issues here.

My guess is either our triangulation code [1]
or our TTF parsing [2].

We also have this issue w/ some serif fonts.

[2]: I have validated our OutlineShape create from TTF glyphs
     w/ specs and other implementations and it seems to be fine.

[1]: The CDTriangulator2D, 'Constrained Delaunay Triangulation',
     may be of an issue here ?!

Surely we need to identify the root cause and fix this.

I hope Rami will join this effort as well,
if he is able to allocate the time.
The latter is quite difficult though .. busy.

If anybody likes to join analysis of this bug
and is capable (math, ..) and has the time,
your help is of course very much appreciated!

Cheers, Sven



signature.asc (894 bytes) Download Attachment