Thread: cairo, rasterizing text

  1. #1
    Registered User javaeyes's Avatar
    Join Date
    Feb 2012
    Posts
    153

    cairo, rasterizing text

    I have some text in cairo that I want to flip vertically. I can do it with scale(1,-1) but the problem is the font face is being kerned in reverse, and so the letter glyphs are not lining up just perfect. I'm going for a web 2.0 mirrored text effect. What I want is to rasterize the text layer, copy it, and then scale it on the negative y axis. Problem is I don't know if it's possible with cairo. Any cairo wizards out there? Cheers.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Rasterise your text to a bitmap, then flip that (perhaps)?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-04-2012, 10:35 PM
  2. cairo text / mirrored text
    By javaeyes in forum C Programming
    Replies: 4
    Last Post: 02-28-2012, 12:57 PM
  3. cairo text extent weirdness
    By javaeyes in forum C Programming
    Replies: 3
    Last Post: 02-24-2012, 07:24 PM
  4. Problem loading font face using freetype and cairo
    By javaeyes in forum C Programming
    Replies: 2
    Last Post: 02-18-2012, 01:42 AM
  5. Cairo and GTK, still need a pixmap?
    By TriKri in forum Linux Programming
    Replies: 0
    Last Post: 03-18-2008, 04:18 PM