Skip to content

Commit 74a1262

Browse files
committed
Add Times-Roman aliases
DEVSIX-1685
1 parent 8fcfc8a commit 74a1262

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

layout/src/main/java/com/itextpdf/layout/font/FontProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ public int addStandardPdfFonts() {
160160
addFont(FontConstants.HELVETICA_BOLDOBLIQUE);
161161
addFont(FontConstants.HELVETICA_OBLIQUE);
162162
addFont(FontConstants.SYMBOL);
163-
addFont(FontConstants.TIMES_ROMAN);
164-
addFont(FontConstants.TIMES_BOLD);
165-
addFont(FontConstants.TIMES_BOLDITALIC);
166-
addFont(FontConstants.TIMES_ITALIC);
163+
fontSet.addFont(FontConstants.TIMES_ROMAN, null, "Times");
164+
fontSet.addFont(FontConstants.TIMES_BOLD, null, "Times-Roman Bold");
165+
fontSet.addFont(FontConstants.TIMES_BOLDITALIC, null, "Times-Roman BoldItalic");
166+
fontSet.addFont(FontConstants.TIMES_ITALIC, null, "Times-Roman Italic");
167167
addFont(FontConstants.ZAPFDINGBATS);
168168
return 14;
169169
}

0 commit comments

Comments
 (0)