|
|
@ -862,10 +862,10 @@ int executeFFprobe(long sessionId, NSArray* arguments) { |
|
|
|
NSString *fontDirectoryPath = [fontDirectoryArray objectAtIndex:i]; |
|
|
|
NSString *fontDirectoryPath = [fontDirectoryArray objectAtIndex:i]; |
|
|
|
[fontConfiguration appendString: @" <dir>"]; |
|
|
|
[fontConfiguration appendString: @" <dir>"]; |
|
|
|
[fontConfiguration appendString: fontDirectoryPath]; |
|
|
|
[fontConfiguration appendString: fontDirectoryPath]; |
|
|
|
[fontConfiguration appendString: @"</dir>"]; |
|
|
|
[fontConfiguration appendString: @"</dir>\n"]; |
|
|
|
} |
|
|
|
} |
|
|
|
[fontConfiguration appendString:fontNameMappingBlock]; |
|
|
|
[fontConfiguration appendString:fontNameMappingBlock]; |
|
|
|
[fontConfiguration appendString:@"</fontconfig>"]; |
|
|
|
[fontConfiguration appendString:@"</fontconfig>\n"]; |
|
|
|
|
|
|
|
|
|
|
|
if (![fontConfiguration writeToFile:fontConfigurationFile atomically:YES encoding:NSUTF8StringEncoding error:&error]) { |
|
|
|
if (![fontConfiguration writeToFile:fontConfigurationFile atomically:YES encoding:NSUTF8StringEncoding error:&error]) { |
|
|
|
NSLog(@"Failed to set font directory. Error received while saving font configuration: %@.", error); |
|
|
|
NSLog(@"Failed to set font directory. Error received while saving font configuration: %@.", error); |
|
|
|