IgeFontEntity - skew transformation

Post your help queries and engine programming questions here

IgeFontEntity - skew transformation

Postby embrance » Wed Feb 05, 2014 12:41 pm

I'm trying to implement skew transformation for text (" Hotel: dsds" ).

I would like to receive the result is visible in the screenshot, text ("Hotel Rubin").

Here is my JavaScript:
Code: Select all
   
this.hotelName = new IgeFontEntity()
            .depth(3)
            .text(GameData.hotelName)
            .width(300)
            // .rotateTo(0, 0, Math.radians(-26))
            .textAlignX(1)
            .textAlignY(0)
            .colorOverlay('#000000')
            .borderRadius(0)
            .nativeFont('small-caps bold 30px arial')
            .nativeStroke(1)
            .overflow(true)
            .nativeStrokeColor('#FFFFFF')
            .opacity(0.8)
            .center(x)
            .middle(y)
            .mount(self.objectScene);


Can somebody help me?
Attachments
test4.jpg
test4.jpg (97.71 KiB) Viewed 4160 times
embrance
 
Posts: 1
Joined: Wed Feb 05, 2014 12:18 pm

Return to Help & Questions

Who is online

Users browsing this forum: Google [Bot] and 1 guest
cron