We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bde9a8 commit 8fcfc8aCopy full SHA for 8fcfc8a
layout/src/test/java/com/itextpdf/layout/FontSelectorTest.java
@@ -157,7 +157,7 @@ public void customFontWeight() throws Exception {
157
sel.getFontSet().addFont(FontConstants.HELVETICA);
158
sel.getFontSet().addFont(FontConstants.HELVETICA_BOLD);
159
sel.getFontSet().addFont(FontConstants.TIMES_ROMAN);
160
- sel.getFontSet().addFont(FontConstants.TIMES_BOLD);
+ sel.getFontSet().addFont(FontConstants.TIMES_BOLD, null, "Times-Roman Bold");
161
162
PdfDocument pdfDoc = new PdfDocument(new PdfWriter(new FileOutputStream(outFileName)));
163
Document doc = new Document(pdfDoc);
0 commit comments