List of usage examples for com.itextpdf.text.pdf BaseFont TIMES_BOLD
String TIMES_BOLD
To view the source code for com.itextpdf.text.pdf BaseFont TIMES_BOLD.
Click Source Link
From source file:de.jost_net.JVerein.gui.control.FormularfeldControl.java
License:Open Source License
public SelectInput getFont() throws RemoteException { if (font != null) { return font; }/* ww w . j av a2 s . c o m*/ ArrayList<String> fonts = new ArrayList<String>(); fonts.add("FreeSans"); fonts.add("FreeSans-Bold"); fonts.add("FreeSans-BoldOblique"); fonts.add("FreeSans-Oblique"); fonts.add(BaseFont.HELVETICA); fonts.add(BaseFont.HELVETICA_BOLD); fonts.add(BaseFont.HELVETICA_BOLDOBLIQUE); fonts.add(BaseFont.HELVETICA_OBLIQUE); fonts.add(BaseFont.TIMES_ROMAN); fonts.add(BaseFont.TIMES_BOLD); fonts.add(BaseFont.TIMES_ITALIC); fonts.add(BaseFont.TIMES_BOLDITALIC); fonts.add(BaseFont.COURIER); fonts.add(BaseFont.COURIER_BOLD); fonts.add(BaseFont.COURIER_OBLIQUE); fonts.add(BaseFont.COURIER_BOLDOBLIQUE); font = new SelectInput(fonts, getFormularfeld().getFont()); return font; }
From source file:es.clinica.veterinaria.facturas.FacturaPdf.java
private void initializeFonts() throws DocumentException, IOException { try {//from ww w . j a v a 2 s .com bfBold = BaseFont.createFont(BaseFont.TIMES_BOLD, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); } catch (DocumentException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }