fix indentation errors in fonts.conf file created on apple and android platforms
This commit is contained in:
parent
7ca081a488
commit
862b0485e0
@ -455,7 +455,7 @@ public class FFmpegKitConfig {
|
||||
fontConfigBuilder.append("</dir>\n");
|
||||
}
|
||||
fontConfigBuilder.append(fontNameMappingBlock);
|
||||
fontConfigBuilder.append("</fontconfig>");
|
||||
fontConfigBuilder.append("</fontconfig>\n");
|
||||
|
||||
final AtomicReference<FileOutputStream> reference = new AtomicReference<>();
|
||||
try {
|
||||
|
@ -862,10 +862,10 @@ int executeFFprobe(long sessionId, NSArray* arguments) {
|
||||
NSString *fontDirectoryPath = [fontDirectoryArray objectAtIndex:i];
|
||||
[fontConfiguration appendString: @" <dir>"];
|
||||
[fontConfiguration appendString: fontDirectoryPath];
|
||||
[fontConfiguration appendString: @"</dir>"];
|
||||
[fontConfiguration appendString: @"</dir>\n"];
|
||||
}
|
||||
[fontConfiguration appendString:fontNameMappingBlock];
|
||||
[fontConfiguration appendString:@"</fontconfig>"];
|
||||
[fontConfiguration appendString:@"</fontconfig>\n"];
|
||||
|
||||
if (![fontConfiguration writeToFile:fontConfigurationFile atomically:YES encoding:NSUTF8StringEncoding error:&error]) {
|
||||
NSLog(@"Failed to set font directory. Error received while saving font configuration: %@.", error);
|
||||
|
Loading…
Reference in New Issue
Block a user