/ CoreText / CTFontDescriptor.m
CTFontDescriptor.m
 1  #import <CoreText/CTFontDescriptor.h>
 2  
 3  #include <stdio.h>
 4  
 5  const CFStringRef kCTFontURLAttribute = CFSTR("NSCTFontFileURLAttribute");
 6  const CFStringRef kCTFontNameAttribute = CFSTR("NSFontNameAttribute");
 7  const CFStringRef kCTFontDisplayNameAttribute = CFSTR("NSFontVisibleNameAttribute");
 8  const CFStringRef kCTFontFamilyNameAttribute = CFSTR("NSFontFamilyAttribute");
 9  const CFStringRef kCTFontStyleNameAttribute = CFSTR("NSFontFaceAttribute");
10  const CFStringRef kCTFontTraitsAttribute = CFSTR("NSCTFontTraitsAttribute");
11  const CFStringRef kCTFontVariationAttribute = CFSTR("NSCTFontVariationAttribute");
12  const CFStringRef kCTFontSizeAttribute = CFSTR("NSFontSizeAttribute");
13  const CFStringRef kCTFontMatrixAttribute = CFSTR("NSCTFontMatrixAttribute");
14  const CFStringRef kCTFontCascadeListAttribute = CFSTR("NSCTFontCascadeListAttribute");
15  const CFStringRef kCTFontCharacterSetAttribute = CFSTR("NSCTFontCharacterSetAttribute");
16  const CFStringRef kCTFontLanguagesAttribute = CFSTR("NSCTFontLanguagesAttribute");
17  const CFStringRef kCTFontBaselineAdjustAttribute = CFSTR("NSCTFontBaselineAdjustAttribute");
18  const CFStringRef kCTFontMacintoshEncodingsAttribute = CFSTR("NSCTFontMacintoshEncodingsAttribute");
19  const CFStringRef kCTFontFeaturesAttribute = CFSTR("NSCTFontFeaturesAttribute");
20  const CFStringRef kCTFontFeatureSettingsAttribute = CFSTR("NSCTFontFeatureSettingsAttribute");
21  const CFStringRef kCTFontFixedAdvanceAttribute = CFSTR("NSCTFontFixedAdvanceAttribute");
22  const CFStringRef kCTFontOrientationAttribute = CFSTR("NSCTFontOrientationAttribute");
23  const CFStringRef kCTFontEnabledAttribute = CFSTR("NSCTFontEnabledAttribute");
24  const CFStringRef kCTFontFormatAttribute = CFSTR("NSCTFontFormatAttribute");
25  const CFStringRef kCTFontRegistrationScopeAttribute = CFSTR("NSCTFontRegistrationScopeAttribute");
26  const CFStringRef kCTFontPriorityAttribute = CFSTR("NSCTFontPriorityAttribute");
27  
28  CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute)
29  {
30      printf("STUB %s\n", __PRETTY_FUNCTION__);
31      return nil;
32  }