06-09-2010 03:03 AM
Paths has smallcurves. I was actually trying to draw the text by getting the path from the font. I am getting good text, but its edges & curves are not nice. When I draw the filled path, i feel because of the missing decimals, some of the path filles are not upto the extent.
Consider a font with 10 font size where I am drawing "a". Curves are very small.
I tried converting the points to Fixed Int as mentiuoned above, but some how drawFilledPath() does not resepect the Fixed32 values.
I tried converting the each double point e.g 10.5342 to Fixed int using Fixed32.tenThouToFP((int) 10.5342 * 10000);
I suspect, it is considering the resulting point is just multiplied by 10,000 (105342) instead of taking it as 10.5342 while drawing with this point.
06-09-2010 07:08 AM
Yes, all the functions in Graphics expect pixel-aligned values. If you passed in a Fixed32 value it will just see that as a big number.
May I ask how you got the path from the font?