The iText documentation states that it only includes a certain subset of fonts but never says what those are. Does anyone have any ideas what fonts are included by default in iText?
(I've searched online and haven't been able to find this list of fonts anywhere!)
// Setting font of the text PdfFont font = PdfFontFactory. createFont(FontConstants. HELVETICA_BOLD); Now, set font to the text using the setFont() method of the Text class to this method.
Describe the problem in detail By default, RStudio on Windows uses the Courier New font.
This license is a commercial license. You have to pay for it. To answer your question: iText can be used for free in situations where you also distribute your software for free. As soon as you want to use iText in a closed source, proprietary environment, you have to pay for your use of iText.
iText is rooted in the Open-Source community Over 20 years ago, the code that formed the basis for the iText PDF library as we know it today was written in an open-source environment. Even today, its code remains open-source.
It is probably referring to the PDF Standard 14 Fonts.
Actually you can find it out in the source code:
static BaseFont() {
BuiltinFonts14.Add(COURIER, PdfName.COURIER);
BuiltinFonts14.Add(COURIER_BOLD, PdfName.COURIER_BOLD);
BuiltinFonts14.Add(COURIER_BOLDOBLIQUE, PdfName.COURIER_BOLDOBLIQUE);
BuiltinFonts14.Add(COURIER_OBLIQUE, PdfName.COURIER_OBLIQUE);
BuiltinFonts14.Add(HELVETICA, PdfName.HELVETICA);
BuiltinFonts14.Add(HELVETICA_BOLD, PdfName.HELVETICA_BOLD);
BuiltinFonts14.Add(HELVETICA_BOLDOBLIQUE, PdfName.HELVETICA_BOLDOBLIQUE);
BuiltinFonts14.Add(HELVETICA_OBLIQUE, PdfName.HELVETICA_OBLIQUE);
BuiltinFonts14.Add(SYMBOL, PdfName.SYMBOL);
BuiltinFonts14.Add(TIMES_ROMAN, PdfName.TIMES_ROMAN);
BuiltinFonts14.Add(TIMES_BOLD, PdfName.TIMES_BOLD);
BuiltinFonts14.Add(TIMES_BOLDITALIC, PdfName.TIMES_BOLDITALIC);
BuiltinFonts14.Add(TIMES_ITALIC, PdfName.TIMES_ITALIC);
BuiltinFonts14.Add(ZAPFDINGBATS, PdfName.ZAPFDINGBATS);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With