Shear / Skew Text

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
codinghands
Prole
Posts: 11
Joined: Fri May 17, 2013 7:40 am

Shear / Skew Text

Post by codinghands »

Is there any way to shear / skew text drawn using love.graphics.print?

Cheers,

Paul
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Shear / Skew Text

Post by Jasoco »

Use the love.graphics.push() commands. One of them is Shear. There's also Scale and Translate. I make extensive use of them.

http://www.love2d.org/wiki/love.graphics

Look under the "Coordinate System" category.

Image
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Shear / Skew Text

Post by slime »

love.graphics.print's last two arguments are shearing factors for the x and y axes. love.graphics.printf will have the same in version 0.9.0.
codinghands
Prole
Posts: 11
Joined: Fri May 17, 2013 7:40 am

Re: Shear / Skew Text

Post by codinghands »

Magic, totally blinded to the transform stack!

Also derp! Sorry feel pretty dumb right now... somehow managed to miss all of this. Cheers for the speedy replies!!

P
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 6 guests