public class Font extends BaseDomainConstant implements Cloneable
Constructor and Description |
---|
Font() |
Font(int fontSize,
String fontName,
boolean bold) |
Font(int fontSize,
String fontName,
boolean bold,
boolean italic,
boolean underline) |
Font(int fontSize,
String fontName,
String pdfFontName,
String pdfFontEncoding,
boolean pdfFontEmbedded) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getFontName() |
int |
getFontSize() |
String |
getPdfFontEncoding() |
String |
getPdfFontName() |
String |
getStandardFontname()
Returns a string that describes the font like indicated in
java.awt.Font.decode(...)
|
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isPdfFontEmbedded() |
boolean |
isUnderline() |
void |
setBold(boolean bold) |
void |
setFontName(String fontName) |
void |
setFontSize(int fontSize) |
void |
setItalic(boolean intalic) |
void |
setPdfFontEmbedded(boolean pdfFontEmbedded) |
void |
setPdfFontEncoding(String pdfFontEncoding)
Use the constants Font.PDF_ENCODING_XXXX...
|
void |
setPdfFontName(String pdfFontName)
The path to the font file
|
void |
setUnderline(boolean underline) |
Font |
toAwtFont() |
net.sf.jasperreports.engine.JRFont |
transform() |
public static final String PDF_ENCODING_CP1250_Central_European
public static final String PDF_ENCODING_CP1251_Cyrillic
public static final String PDF_ENCODING_CP1252_Western_European_ANSI
public static final String PDF_ENCODING_CP1253_Greek
public static final String PDF_ENCODING_CP1254_Turkish
public static final String PDF_ENCODING_CP1255_Hebrew
public static final String PDF_ENCODING_CP1256_Arabic
public static final String PDF_ENCODING_CP1257_Baltic
public static final String PDF_ENCODING_CP1258_Vietnamese
public static final String PDF_ENCODING_UniGB_UCS2_H_Chinese_Simplified
public static final String PDF_ENCODING_UniGB_UCS2_V_Chinese_Simplified
public static final String PDF_ENCODING_UniCNS_UCS2_H_Chinese_traditional
public static final String PDF_ENCODING_UniCNS_UCS2_V_Chinese_traditional
public static final String PDF_ENCODING_UniJIS_UCS2_H_Japanese
public static final String PDF_ENCODING_UniJIS_UCS2_V_Japanese
public static final String PDF_ENCODING_UniJIS_UCS2_HW_H_Japanese
public static final String PDF_ENCODING_UniJIS_UCS2_HW_V_Japanese
public static final String PDF_ENCODING_UniKS_UCS2_H_Korean
public static final String PDF_ENCODING_UniKS_UCS2_V_Korean
public static final String PDF_ENCODING_Identity_H_Unicode_with_horizontal_writing
public static final String PDF_ENCODING_Identity_V_Unicode_with_horizontal_writing
public static final String _FONT_ARIAL
public static final String _FONT_TIMES_NEW_ROMAN
public static final String _FONT_COURIER_NEW
public static final String _FONT_COMIC_SANS
public static final String _FONT_GEORGIA
public static final String _FONT_VERDANA
public static final String _FONT_MONOSPACED
public static final int SMALL
public static final int MEDIUM
public static final int BIG
public static Font ARIAL_SMALL
public static Font ARIAL_MEDIUM
public static Font ARIAL_BIG
public static Font ARIAL_SMALL_BOLD
public static Font ARIAL_MEDIUM_BOLD
public static Font ARIAL_BIG_BOLD
public static Font TIMES_NEW_ROMAN_SMALL
public static Font TIMES_NEW_ROMAN_MEDIUM
public static Font TIMES_NEW_ROMAN_BIG
public static Font TIMES_NEW_ROMAN_SMALL_BOLD
public static Font TIMES_NEW_ROMAN_MEDIUM_BOLD
public static Font TIMES_NEW_ROMAN_BIG_BOLD
public static Font COURIER_NEW_SMALL
public static Font COURIER_NEW_MEDIUM
public static Font COURIER_NEW_BIG
public static Font COURIER_NEW_SMALL_BOLD
public static Font COURIER_NEW_MEDIUM_BOLD
public static Font COURIER_NEW_BIG_BOLD
public static Font COMIC_SANS_SMALL
public static Font COMIC_SANS_MEDIUM
public static Font COMIC_SANS_BIG
public static Font COMIC_SANS_SMALL_BOLD
public static Font COMIC_SANS_MEDIUM_BOLD
public static Font COMIC_SANS_BIG_BOLD
public static Font GEORGIA_SMALL
public static Font GEORGIA_MEDIUM
public static Font GEORGIA_BIG
public static Font GEORGIA_SMALL_BOLD
public static Font GEORGIA_MEDIUM_BOLD
public static Font GEORGIA_BIG_BOLD
public static Font VERDANA_SMALL
public static Font VERDANA_MEDIUM
public static Font VERDANA_BIG
public static Font VERDANA_SMALL_BOLD
public static Font VERDANA_MEDIUM_BOLD
public static Font VERDANA_BIG_BOLD
public static Font MONOSPACED_SMALL
public static Font MONOSPACED_MEDIUM
public static Font MONOSPACED_BIG
public static Font MONOSPACED_SMALL_BOLD
public static Font MONOSPACED_MEDIUM_BOLD
public static Font MONOSPACED_BIG_BOLD
public Font(int fontSize, String fontName, String pdfFontName, String pdfFontEncoding, boolean pdfFontEmbedded)
public Font()
public Font(int fontSize, String fontName, boolean bold, boolean italic, boolean underline)
public Font(int fontSize, String fontName, boolean bold)
public String getFontName()
public int getFontSize()
public boolean isBold()
public boolean isItalic()
public void setItalic(boolean intalic)
public void setFontSize(int fontSize)
public void setFontName(String fontName)
public void setBold(boolean bold)
public boolean isUnderline()
public void setUnderline(boolean underline)
public String getStandardFontname()
public String getPdfFontName()
public void setPdfFontName(String pdfFontName)
pdfFontName
- public String getPdfFontEncoding()
public void setPdfFontEncoding(String pdfFontEncoding)
pdfFontEncoding
- public boolean isPdfFontEmbedded()
public void setPdfFontEmbedded(boolean pdfFontEmbedded)
public net.sf.jasperreports.engine.JRFont transform()
public Font toAwtFont()
Copyright © 2006–2015 FDV Solutions. All rights reserved.