Skip to content

Commit ab051ca

Browse files
committed
PDFBOX-5660: optimize, as suggested by Valery Bokov; closes #280
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/2.0@1929015 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2e83ab9 commit ab051ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,14 @@ public PDType1CFont(COSDictionary fontDictionary) throws IOException
127127
}
128128
else
129129
{
130+
String baseFont = getBaseFont();
130131
FontMapping<FontBoxFont> mapping = FontMappers.instance()
131-
.getFontBoxFont(getBaseFont(), fd);
132+
.getFontBoxFont(baseFont, fd);
132133
genericFont = mapping.getFont();
133134

134135
if (mapping.isFallback())
135136
{
136-
LOG.warn("Using fallback font " + genericFont.getName() + " for " + getBaseFont());
137+
LOG.warn("Using fallback font " + genericFont.getName() + " for " + baseFont);
137138
}
138139
isEmbedded = false;
139140
}

0 commit comments

Comments
 (0)