X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.linking.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Flinking%2Freport%2Fpdf%2FPDFDocument.java;h=dd1315bf5daba20255991a32d0d8d91680e4bf0a;hp=ce0c423e26ede5f1dfaeb7f9d3bdc18a1f768a7f;hb=8783f9ee2b67f83160d88f43a7aef02a6b25f955;hpb=6431ba9c664c0b3c65c486397f610a514f246416 diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/pdf/PDFDocument.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/pdf/PDFDocument.java index ce0c423e2..dd1315bf5 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/pdf/PDFDocument.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/pdf/PDFDocument.java @@ -56,11 +56,11 @@ public class PDFDocument implements Document { } private void defaultFonts() { - fonts.put(TextSize.TINY, new Font("Arial", Font.PLAIN, 6)); - fonts.put(TextSize.SMALL, new Font("Arial", Font.PLAIN, 8)); - fonts.put(TextSize.MEDIUM, new Font("Arial", Font.PLAIN, 10)); - fonts.put(TextSize.LARGE, new Font("Arial", Font.PLAIN, 16)); - fonts.put(TextSize.HUGE, new Font("Arial", Font.BOLD, 24)); + fonts.put(TextSize.TINY, new Font("Arial", Font.PLAIN, 6)); //$NON-NLS-1$ + fonts.put(TextSize.SMALL, new Font("Arial", Font.PLAIN, 8)); //$NON-NLS-1$ + fonts.put(TextSize.MEDIUM, new Font("Arial", Font.PLAIN, 10)); //$NON-NLS-1$ + fonts.put(TextSize.LARGE, new Font("Arial", Font.PLAIN, 16)); //$NON-NLS-1$ + fonts.put(TextSize.HUGE, new Font("Arial", Font.BOLD, 24)); //$NON-NLS-1$ contentStream.setDefaultFont(fonts.get(TextSize.SMALL)); } @@ -103,7 +103,7 @@ public class PDFDocument implements Document { return (T)getOrCreateToc(); } else if (cls == DocumentTitlePage.class) { if (titlePage != null) - throw new Exception("Report may contain only one title page"); + throw new Exception("Report may contain only one title page"); //$NON-NLS-1$ titlePage = new PDFTitlePage(this); return (T)titlePage; } @@ -160,7 +160,7 @@ public class PDFDocument implements Document { if (currentTable != null && currentTable.currentLine > 0) { currentTable.setLinesVisible(false); currentTable.setHeaderVisible(false); - currentTable.writeLine(""); + currentTable.writeLine(""); //$NON-NLS-1$ } }