|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.html.HtmlFont
public class HtmlFont
Handles fonts for the PDF plugin
Field Summary | |
---|---|
private boolean |
bold
is font bold? |
private GDD |
gdd
|
private boolean |
italics
is fond italic? |
private com.lowagie.text.Font |
iTfont
the iText font |
private HtmlData |
pdfData
|
private float |
size
font size |
private Source |
source
file and line number of last change |
private java.lang.String |
typeface
the font typeface in the form of a string used by iText |
Constructor Summary | |
---|---|
HtmlFont(HtmlData pdfData)
|
Method Summary | |
---|---|
(package private) int |
computeItextStyle()
iText font style captures bold, italic, strikethru, underline. |
(package private) com.lowagie.text.Font |
createFont(HtmlFont f)
Creates an iText Font object based on the class fields |
(package private) java.lang.String |
createItextFontName(HtmlFont f)
Get the name by which iText refers to this font. |
java.lang.String |
getFace()
|
com.lowagie.text.Font |
getItextFont()
Get the iText font |
float |
getSize()
|
Source |
getSource()
|
(package private) boolean |
isBase14Font(java.lang.String fontName)
Determines whehter the current font is one of the Base14 Acrobat fonts, built into every PDF reader. |
void |
setBold(boolean onOff,
Source newSource)
set bold on/off and re-create the iText font to record the change. |
void |
setFace(java.lang.String newFace,
Source newSource)
|
void |
setItalics(boolean onOff,
Source newSource)
set italics on/off and re-create the iText font to record the change. |
void |
setSize(float newSize,
Source newSource)
|
void |
setToDefault()
Initializes all PdfFont fields to defaults, and sets line number to 0 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private com.lowagie.text.Font iTfont
private java.lang.String typeface
private float size
private boolean bold
private boolean italics
private Source source
private GDD gdd
private HtmlData pdfData
Constructor Detail |
---|
HtmlFont(HtmlData pdfData)
Method Detail |
---|
public void setToDefault()
com.lowagie.text.Font createFont(HtmlFont f)
f
- the PdfFont containing the parameters for the font
boolean isBase14Font(java.lang.String fontName)
fontName
- name of the font face
java.lang.String createItextFontName(HtmlFont f)
f
- PdfFont whose iText name we're getting
int computeItextStyle()
public com.lowagie.text.Font getItextFont()
public java.lang.String getFace()
public float getSize()
public Source getSource()
public void setBold(boolean onOff, Source newSource)
onOff
- the new value for the italics settingnewSource
- the file and line # of the token that changed italicspublic void setItalics(boolean onOff, Source newSource)
onOff
- the new value for the italics settingnewSource
- the file and line # of the token that changed italicspublic void setSize(float newSize, Source newSource)
public void setFace(java.lang.String newFace, Source newSource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |