fix indentation errors in fonts.conf file created on apple and android platforms

This commit is contained in:
Taner Sener 2022-08-21 23:40:34 +01:00
parent 7ca081a488
commit 862b0485e0
2 changed files with 19 additions and 19 deletions

View File

@ -455,7 +455,7 @@ public class FFmpegKitConfig {
fontConfigBuilder.append("</dir>\n"); fontConfigBuilder.append("</dir>\n");
} }
fontConfigBuilder.append(fontNameMappingBlock); fontConfigBuilder.append(fontNameMappingBlock);
fontConfigBuilder.append("</fontconfig>"); fontConfigBuilder.append("</fontconfig>\n");
final AtomicReference<FileOutputStream> reference = new AtomicReference<>(); final AtomicReference<FileOutputStream> reference = new AtomicReference<>();
try { try {

View File

@ -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);