Skip to content

Commit

Permalink
fontConfig updated for metanorma/metanorma-iso#910
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Mar 12, 2023
1 parent 619ae79 commit fbe64cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/org/metanorma/fop/fontConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ public void setFontManifest(File fFontManifest) {
}
}
}

// remove sub-font property, if font doesn't end with .ttc
fopFonts.stream()
.filter(f -> f.isReadyToUse())
.filter(f -> f.getSub_font() != null)
.filter(f -> !f.getPath().toLowerCase().endsWith(".ttc"))
.forEach(f-> f.setSub_font(null));

} catch (FileNotFoundException ex) {
// make no sense, checking in main method
} catch (Exception ex) {
Expand Down

0 comments on commit fbe64cf

Please sign in to comment.