Skip to content

Commit 8fcfc8a

Browse files
committed
Fix a font selector test.
Add the alias. DEVSIX-1685
1 parent 9bde9a8 commit 8fcfc8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/src/test/java/com/itextpdf/layout/FontSelectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void customFontWeight() throws Exception {
157157
sel.getFontSet().addFont(FontConstants.HELVETICA);
158158
sel.getFontSet().addFont(FontConstants.HELVETICA_BOLD);
159159
sel.getFontSet().addFont(FontConstants.TIMES_ROMAN);
160-
sel.getFontSet().addFont(FontConstants.TIMES_BOLD);
160+
sel.getFontSet().addFont(FontConstants.TIMES_BOLD, null, "Times-Roman Bold");
161161

162162
PdfDocument pdfDoc = new PdfDocument(new PdfWriter(new FileOutputStream(outFileName)));
163163
Document doc = new Document(pdfDoc);

0 commit comments

Comments
 (0)