fix font setup in document command
This commit is contained in:
parent
9eeebfac01
commit
ddb5db7b84
2 changed files with 10 additions and 13 deletions
|
@ -239,7 +239,6 @@ public class Document implements Element, Closeable, RenderListener {
|
|||
return PDType0Font.load(pdDocument, openTypeFont, true);
|
||||
}
|
||||
|
||||
|
||||
public Font getFont(String name) {
|
||||
return fonts.get(name);
|
||||
}
|
||||
|
|
|
@ -71,7 +71,6 @@ public class DocumentCommand implements Command {
|
|||
} else {
|
||||
document.setModificationDate(instant);
|
||||
}
|
||||
if (settings.containsSetting("font")) {
|
||||
String[] fonts = settings.getAsArray("font");
|
||||
for (String font : fonts) {
|
||||
switch (font) {
|
||||
|
@ -84,7 +83,6 @@ public class DocumentCommand implements Command {
|
|||
case "sourcesans" -> document.registerSourceSansFont();
|
||||
}
|
||||
}
|
||||
}
|
||||
state.getElements().push(document);
|
||||
engine.executeElements(settings);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue