PDA

View Full Version : Rendering glyphs along a curved line



dineshks
08-31-2010, 02:16 PM
I want to render a text along a line [eg. road names like on google maps]. One way of doing this is to create an VGImage for each glyph, rotate it an angle and draw it as an image.

is there a mechanism to achieve this using VGFonts ?

ioseph
09-01-2010, 01:11 PM
Yes, you can draw individual glyphs using vgDrawGlyph either vector or raster fonts. You still need apply a rotation for each glyph if you want them to be tangent to some line.

dineshks
09-02-2010, 06:06 AM
I am rendering each character as an image instead of using openvg fonts and glyphs. Rotating an image reduces the image quality [jagged lines for the character]. any idea how it can be resolved, apart from using high resolution image for the character.

muratmat
09-02-2010, 06:08 AM
I am rendering each character as an image instead of using openvg fonts and glyphs. Rotating an image reduces the image quality [jagged lines for the character]. any idea how it can be resolved, apart from using high resolution image for the character.

Use paths (i.e. VGPath) as glyphs.