Skip to content

Commit

Permalink
Remove some font API code that seems to be crashing in 10.8
Browse files Browse the repository at this point in the history
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 committed Jan 23, 2013
1 parent 783501f commit 720494c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Subtitles/SubATSUIRenderer.m
Expand Up @@ -248,21 +248,6 @@ -(float)aspectRatio
static ItemCount fontCount; static ItemCount fontCount;
static ATSUFontID *fontIDs = NULL; 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. // Assumes ATSUFontID = ATSFontRef. This is true.
static ATSUFontID GetFontIDForSSAName(NSString *name) static ATSUFontID GetFontIDForSSAName(NSString *name)
{ {
Expand Down Expand Up @@ -363,12 +348,7 @@ -(void)didCompleteStyleParsing:(SubStyle*)s


SetATSUStyleOther(style, kATSUFontMatrixTag, sizeof(CGAffineTransform), &mat); 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]; s.extra = [[[SubATSUStyle alloc] initWithATSUStyle:style] autorelease];
} }


Expand Down

0 comments on commit 720494c

Please sign in to comment.