Thread: cairo text / mirrored text

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

    cairo text / mirrored text

    This one is a longshot:
    I am loading fonts into cairo using freetype. It's all going very smoothly, but I need to mirror the text vertically. Any suggestions? I though about trying to modify the text extents, maybe reversing the y values, but i can't find their member variables. Anybody? Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Do fonts respect the CTM?
    Transformations
    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.

  3. #3
    Registered User javaeyes's Avatar
    Join Date
    Feb 2012
    Posts
    153
    Hmmmmm, reading the manual now. Thanks, just might work.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Location
    Buea, Cameroon
    Posts
    197
    store the characters in an array or any ADT and start printing from the last upwards it should do the job. hope it helps.

  5. #5
    Registered User javaeyes's Avatar
    Join Date
    Feb 2012
    Posts
    153
    There is no 'printing' going on, I'm loading vector font face files and rasterizing them onto a canvas.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cairo text extent weirdness
    By javaeyes in forum C Programming
    Replies: 3
    Last Post: 02-24-2012, 07:24 PM
  2. Replace wildcard text in file with specific text.
    By untz in forum C++ Programming
    Replies: 4
    Last Post: 11-22-2010, 06:35 PM
  3. Type text = Press button = Display text in Google?
    By Raze88 in forum C++ Programming
    Replies: 4
    Last Post: 03-20-2008, 08:39 AM
  4. Replies: 4
    Last Post: 01-03-2006, 03:02 AM
  5. create a text file with data using text editor
    By fried egg in forum C Programming
    Replies: 3
    Last Post: 03-14-2002, 09:11 PM