Skip to content

Instantly share code, notes, and snippets.

@C4Examples
Created July 24, 2012 21:46
Show Gist options
  • Save C4Examples/3172883 to your computer and use it in GitHub Desktop.
Save C4Examples/3172883 to your computer and use it in GitHub Desktop.
Text Shape
//
// 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