Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (39 sloc) 1.92 KB
//
// DTCoreTextFontDescriptor.h
// CoreTextExtensions
//
// Created by Oliver Drobnik on 1/26/11.
// Copyright 2011 Drobnik.com. All rights reserved.
//
@interface DTCoreTextFontDescriptor : NSObject <NSCopying, NSCoding>
// sets the font face name to use for a specific font family
+ (void)setSmallCapsFontName:(NSString *)fontName forFontFamily:(NSString *)fontFamily bold:(BOOL)bold italic:(BOOL)italic;
+ (NSString *)smallCapsFontNameforFontFamily:(NSString *)fontFamily bold:(BOOL)bold italic:(BOOL)italic;
// overriding typefaces for families
+ (void)setOverrideFontName:(NSString *)fontName forFontFamily:(NSString *)fontFamily bold:(BOOL)bold italic:(BOOL)italic;
+ (NSString *)overrideFontNameforFontFamily:(NSString *)fontFamily bold:(BOOL)bold italic:(BOOL)italic;
+ (DTCoreTextFontDescriptor *)fontDescriptorWithFontAttributes:(NSDictionary *)attributes;
+ (DTCoreTextFontDescriptor *)fontDescriptorForCTFont:(CTFontRef)ctFont;
- (id)initWithFontAttributes:(NSDictionary *)attributes;
- (id)initWithCTFontDescriptor:(CTFontDescriptorRef)ctFontDescriptor;
- (id)initWithCTFont:(CTFontRef)ctFont;
- (void)setFontAttributes:(NSDictionary *)newAttributes;
- (CTFontSymbolicTraits)symbolicTraits;
- (NSDictionary *)fontAttributes;
- (CTFontRef)newMatchingFont;
- (BOOL)supportsNativeSmallCaps;
- (NSString *)cssStyleRepresentation;
@property (nonatomic, copy) NSString *fontFamily;
@property (nonatomic, copy) NSString *fontName;
@property (nonatomic) CGFloat pointSize;
@property (nonatomic) BOOL boldTrait;
@property (nonatomic) BOOL italicTrait;
@property (nonatomic) BOOL expandedTrait;
@property (nonatomic) BOOL condensedTrait;
@property (nonatomic) BOOL monospaceTrait;
@property (nonatomic) BOOL verticalTrait;
@property (nonatomic) BOOL UIoptimizedTrait;
@property (nonatomic) CTFontSymbolicTraits symbolicTraits;
@property (nonatomic) CTFontStylisticClass stylisticClass;
@property (nonatomic) BOOL smallCapsFeature;
@end
Jump to Line
Something went wrong with that request. Please try again.