Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Default Fonts Are Included With iText?

Tags:

itext

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!)

like image 375
Ruben Avatar asked Jan 15 '10 16:01

Ruben


People also ask

How to set font in iText7?

// 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.

What is the default RStudio font?

Describe the problem in detail By default, RStudio on Windows uses the Courier New font.

Is iText library free?

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.

Is iText PDF open source?

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.


2 Answers

It is probably referring to the PDF Standard 14 Fonts.

like image 51
Adam Goode Avatar answered Oct 14 '22 19:10

Adam Goode


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);
    }
like image 29
Daniel King Avatar answered Oct 14 '22 19:10

Daniel King