Skip to content
Browse files

fixed some issues

  • Loading branch information...
1 parent 753e6ce commit 8b1f70e40113f8cfe49c793652e2e962060c57fe @dhoerl dhoerl committed Aug 22, 2011
Showing with 5 additions and 7 deletions.
  1. +3 −6 Classes/DTCoreTextFontDescriptor.h
  2. +2 −1 Classes/DTCoreTextFontDescriptor.m
View
9 Classes/DTCoreTextFontDescriptor.h
@@ -29,15 +29,12 @@
CTFontStylisticClass stylisticClass;
- BOOL smallCapsFeature;
+ BOOL smallCapsFeature;
- BOOL _hashSet;
- NSUInteger _hash;
+ BOOL _hashSet;
+ NSUInteger _hash;
}
-// generated fonts are cached
-//+ (DTCache *)fontCache;
-
// 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;
View
3 Classes/DTCoreTextFontDescriptor.m
@@ -16,6 +16,7 @@
@interface DTCoreTextFontDescriptor ()
+// generated fonts are cached
+ (DTCache *)fontCache;
@end
@@ -418,6 +419,7 @@ - (CTFontRef)newMatchingFont
if (cachedFont)
{
CFRetain(cachedFont);
+ dispatch_semaphore_signal(fontLock);
return cachedFont;
}
@@ -500,7 +502,6 @@ - (CTFontRef)newMatchingFont
}
dispatch_semaphore_signal(fontLock);
-
return matchingFont;
}

0 comments on commit 8b1f70e

Please sign in to comment.
Something went wrong with that request. Please try again.