1.1 --- a/Source/PlayingCard.m Mon Mar 10 17:30:57 2008 -0700
1.2 +++ b/Source/PlayingCard.m Wed Mar 12 15:51:32 2008 -0700
1.3 @@ -41,25 +41,37 @@
1.4 self.rankString, self.suitString];
1.5
1.6 CGColorRef suitColor = self.suitColor;
1.7 + float scale = [Card cardSize].height/150;
1.8 + float cornerFontSize = MAX(18*scale, 14);
1.9 + float centerFontSize = 80*scale;
1.10 +
1.11 +#if TARGET_OS_ASPEN
1.12 + UIFont *cornerFont = [UIFont boldSystemFontOfSize: cornerFontSize];
1.13 +#else
1.14 + NSFont *cornerFont = [NSFont boldSystemFontOfSize: cornerFontSize];
1.15 +#endif
1.16 GGBTextLayer *label;
1.17 label = [GGBTextLayer textLayerInSuperlayer: front
1.18 withText: name
1.19 - fontSize: 18.0
1.20 - alignment: kCALayerMaxXMargin | kCALayerMinYMargin];
1.21 + font: cornerFont
1.22 + alignment: kCALayerMaxXMargin | kCALayerBottomMargin];
1.23 label.foregroundColor = suitColor;
1.24 label = [GGBTextLayer textLayerInSuperlayer: front
1.25 withText: name
1.26 - fontSize: 18.0
1.27 - alignment: kCALayerMaxXMargin | kCALayerMaxYMargin];
1.28 + font: cornerFont
1.29 + alignment: kCALayerMaxXMargin | kCALayerTopMargin];
1.30 label.foregroundColor = suitColor;
1.31 label.anchorPoint = CGPointMake(1,1);
1.32 [label setValue: [NSNumber numberWithFloat: M_PI] forKeyPath: @"transform.rotation"];
1.33
1.34 label = [GGBTextLayer textLayerInSuperlayer: front
1.35 withText: self.faceSymbol
1.36 - fontSize: 80
1.37 + fontSize: centerFontSize
1.38 alignment: kCALayerWidthSizable | kCALayerHeightSizable];
1.39 label.foregroundColor = suitColor;
1.40 + //label.borderWidth = 1;
1.41 + //label.borderColor = kBlackColor;
1.42 +
1.43 return front;
1.44 }
1.45