summary refs log tree commit diff stats
path: root/libs/FontLabel/ZFont.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
committerStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
commit9cd57b731ab1c666d4a1cb725538fdc137763d12 (patch)
tree5bac45ae5157a1cb10c6e45500cbf72789917980 /libs/FontLabel/ZFont.h
downloadcartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip
Initial commit (version 0.2.1)
Diffstat (limited to 'libs/FontLabel/ZFont.h')
-rwxr-xr-xlibs/FontLabel/ZFont.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/libs/FontLabel/ZFont.h b/libs/FontLabel/ZFont.h new file mode 100755 index 0000000..05ae823 --- /dev/null +++ b/libs/FontLabel/ZFont.h
@@ -0,0 +1,47 @@
1//
2// ZFont.h
3// FontLabel
4//
5// Created by Kevin Ballard on 7/2/09.
6// Copyright © 2009 Zynga Game Networks
7//
8//
9// Licensed under the Apache License, Version 2.0 (the "License");
10// you may not use this file except in compliance with the License.
11// You may obtain a copy of the License at
12//
13// http://www.apache.org/licenses/LICENSE-2.0
14//
15// Unless required by applicable law or agreed to in writing, software
16// distributed under the License is distributed on an "AS IS" BASIS,
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18// See the License for the specific language governing permissions and
19// limitations under the License.
20//
21
22#import <Foundation/Foundation.h>
23#import <UIKit/UIKit.h>
24
25@interface ZFont : NSObject {
26 CGFontRef _cgFont;
27 CGFloat _pointSize;
28 CGFloat _ratio;
29 NSString *_familyName;
30 NSString *_fontName;
31 NSString *_postScriptName;
32}
33@property (nonatomic, readonly) CGFontRef cgFont;
34@property (nonatomic, readonly) CGFloat pointSize;
35@property (nonatomic, readonly) CGFloat ascender;
36@property (nonatomic, readonly) CGFloat descender;
37@property (nonatomic, readonly) CGFloat leading;
38@property (nonatomic, readonly) CGFloat xHeight;
39@property (nonatomic, readonly) CGFloat capHeight;
40@property (nonatomic, readonly) NSString *familyName;
41@property (nonatomic, readonly) NSString *fontName;
42@property (nonatomic, readonly) NSString *postScriptName;
43+ (ZFont *)fontWithCGFont:(CGFontRef)cgFont size:(CGFloat)fontSize;
44+ (ZFont *)fontWithUIFont:(UIFont *)uiFont;
45- (id)initWithCGFont:(CGFontRef)cgFont size:(CGFloat)fontSize;
46- (ZFont *)fontWithSize:(CGFloat)fontSize;
47@end