Created
July 24, 2012 21:46
-
-
Save C4Examples/3172883 to your computer and use it in GitHub Desktop.
Text Shape
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// C4WorkSpace.m | |
// Examples | |
// | |
// Created by Travis Kirton on 12-07-19. | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
//create a font (120 is big enough for an iPad, make it smaller for iPod/iPhone) | |
C4Font *font = [C4Font fontWithName:@"Futura-CondensedExtraBold" size:120.0f]; | |
//create a shape using a string and font | |
C4Shape *textShape = [C4Shape shapeFromString:@"A TEXT SHAPE" withFont:font]; | |
textShape.center = self.canvas.center; | |
//add the shape to the canvas | |
[self.canvas addShape:textShape]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment