Permalink
Browse files

Remove some font API code that seems to be crashing in 10.8

We didn't really need it, it didn't work.

git-svn-id: https://svn.perian.org/trunk@1537 621663c8-3916-0410-8f58-edc14a8543d5
  • Loading branch information...
astrange
astrange committed Jan 23, 2013
1 parent 783501f commit 720494c70d810226516eea9454b1cd596bb99ddb
Showing with 0 additions and 20 deletions.
  1. +0 −20 Subtitles/SubATSUIRenderer.m
@@ -248,21 +248,6 @@ -(float)aspectRatio
static ItemCount fontCount;
static ATSUFontID *fontIDs = NULL;
static void CleanupFontIDCache() __attribute__((destructor));
static void CleanupFontIDCache()
{
@autoreleasepool {
if (fontIDCache) {
[fontIDCache release];
fontIDCache = nil;
}
if (fontIDs) {
free(fontIDs);
fontIDs = NULL;
}
}
}
// Assumes ATSUFontID = ATSFontRef. This is true.
static ATSUFontID GetFontIDForSSAName(NSString *name)
{
@@ -363,12 +348,7 @@ -(void)didCompleteStyleParsing:(SubStyle*)s
SetATSUStyleOther(style, kATSUFontMatrixTag, sizeof(CGAffineTransform), &mat);
}
const ATSUFontFeatureType ftypes[] = {kLigaturesType, kTypographicExtrasType, kTypographicExtrasType, kTypographicExtrasType};
const ATSUFontFeatureSelector fsels[] = {kCommonLigaturesOnSelector, kSmartQuotesOnSelector, kPeriodsToEllipsisOnSelector, kHyphenToEnDashOnSelector};
ATSUSetFontFeatures(style, sizeof(ftypes) / sizeof(ATSUFontFeatureType), ftypes, fsels);
s.extra = [[[SubATSUStyle alloc] initWithATSUStyle:style] autorelease];
}

0 comments on commit 720494c

Please sign in to comment.