aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java
index b0c4b552..052106fd 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/PDFBoxFont.java
@@ -110,10 +110,10 @@ public class PDFBoxFont {
if(fontArr.length == 3) {
font = generateFont(fontArr[0], fontArr[2]);
- fontSize = Integer.parseInt(fontArr[1]);
+ fontSize = Float.parseFloat(fontArr[1]);
} else if(fontArr.length == 2 && fontArr[0].startsWith("TTF:")) {
font = generateFont(fontArr[0], null);
- fontSize = Integer.parseInt(fontArr[1]);
+ fontSize = Float.parseFloat(fontArr[1]);
} else {
logger.warn("Using default font because: {} is not a valid font descriptor.", desc);
this.font = defaultFont;