Results 1 to 4 of 4

Thread: Rendering glyphs along a curved line

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    2

    Rendering glyphs along a curved line

    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 ?

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Re: Rendering glyphs along a curved line

    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.

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    2

    Re: Rendering glyphs along a curved line

    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.

  4. #4

    Re: Rendering glyphs along a curved line

    Quote Originally Posted by dineshks
    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.
    AmanithVG Lead Programmer

Similar Threads

  1. No API for rendering glyphs to a mask?
    By HabeusCorpse in forum OpenVG and VGU
    Replies: 1
    Last Post: 10-05-2011, 11:11 AM
  2. Need some input regarding drawing glyphs using vgdrawglyph
    By deepak.dk in forum OpenVG and VGU
    Replies: 4
    Last Post: 01-07-2010, 03:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •