Skip to content

Commit

Permalink
fonts downloading disabled, #200
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jun 16, 2023
1 parent f3da485 commit 9a7e01e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/metanorma/fop/fontConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class fontConfig {

private final Document FOPconfigXML;

static final String DEFAULT_FONT_PATH = "~/.metanorma/fonts";
static final String DEFAULT_FONT_PATH = "~/.fontist/fonts"; //"~/.metanorma/fonts"; https://github.com/metanorma/mn2pdf/issues/200

private List<String> sourceDocumentFontList;
private File updatedConfig;
Expand Down Expand Up @@ -125,7 +125,7 @@ public fontConfig() {
public void setFontPath(String fontPath) {
this.fontPath = Util.fixFontPath(fontPath);
try {
new File(this.fontPath).mkdirs();
//new File(this.fontPath).mkdirs(); https://github.com/metanorma/mn2pdf/issues/200
} catch (Exception ex) {
logger.severe(ex.toString());
}
Expand Down Expand Up @@ -462,7 +462,8 @@ private void updateConfig() throws IOException, Exception {
// if there isn't manifest file
// and in case of font replacement
if (fFontManifest == null || isDefaultFontNeedToDownload) {
new DefaultFonts().downloadDefaultFonts(fontPath);
// commented: see https://github.com/metanorma/mn2pdf/issues/200
//new DefaultFonts().downloadDefaultFonts(fontPath);
}

//add fonts from from FOP config (except system fonts) to system available fonts
Expand Down

0 comments on commit 9a7e01e

Please sign in to comment.