BaseFont base = BaseFont.createFont("c:/windows/fonts/arial.ttf", BaseFont.WINANSI);
Font font = new Font(base, 11f, Font.BOLD);
....
Read more here.
More Related Contents:
- Converting HTML to PDF using iText
- how to add blank page in digitally signed pdf using java?
- Getting fonts, sizes, bold,…etc
- How can I use a custom font in Java?
- Return generated pdf using spring MVC
- Setting the Default Font of Swing Program
- Using iTextPDF to trim a page’s whitespace
- How to change font size in Eclipse for Java text editors?
- How to change the size of the font of a JLabel to take the maximum size
- How can I test if my font is rendered correctly in pdf?
- Setting custom font
- How to merge documents correctly?
- Using custom font in android TextView using xml
- Change Font at runtime
- Display an Unicode character on JButton
- How to extend the page size of a PDF to add a watermark?
- How to convert HTML to PDF using iText [duplicate]
- How to display Arabic in PDF created using iText
- iText – add content to existing PDF file
- iText/BouncyCastle ClassNotFound org.bouncycastle.asn1.DEREncodable and org.bouncycastle.tsp.TimeStampTokenInfo
- How can I serve a PDF to a browser without storing a file on the server side?
- SWT – OS agnostic way to get monospaced font
- function that can use iText to concatenate / merge pdfs together – causing some issues
- Character display/search for Unicode characters
- IText edit or remove the layer on PDF
- How to add total page number on every page with iText?
- itext positioning text absolutely
- Extract Image from PDF using Java
- iText create document with unequal page sizes
- compress pdf with large images via java