cairo, rasterizing text

This is a discussion on cairo, rasterizing text within the C Programming forums, part of the General Programming Boards category; I have some text in cairo that I want to flip vertically. I can do it with scale(1,-1) but the ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-04-2012, 09:35 PM
  2. cairo text / mirrored text
    By javaeyes in forum C Programming
    Replies: 4
    Last Post: 02-28-2012, 11:57 AM
  3. cairo text extent weirdness
    By javaeyes in forum C Programming
    Replies: 3
    Last Post: 02-24-2012, 06:24 PM
  4. Problem loading font face using freetype and cairo
    By javaeyes in forum C Programming
    Replies: 2
    Last Post: 02-18-2012, 12: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21