Issue #458 Saving font settings to preserve font panel selection after program restart: individual behavior for each file

This commit is contained in:
Honfika
2014-01-01 21:12:27 +01:00
parent 3f30c5247a
commit 9b15a255c6
25 changed files with 295 additions and 203 deletions
@@ -306,8 +306,10 @@ public class Configuration {
return result;
}
public static void addFontPair(String fontName, String systemFontName) {
public static void addFontPair(String fileName, int fontId, String fontName, String systemFontName) {
String key = fileName + "_" + fontId + "_" + fontName;
Map<String, String> fontPairs = getFontPairs();
fontPairs.put(key, systemFontName);
fontPairs.put(fontName, systemFontName);
StringBuilder sb = new StringBuilder();
int i = 0;