|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFFontInfo
public class HSLFFontInfo
Represents a Font used in a presentation.
In PowerPoint Font is a shared resource and can be shared among text object in the presentation.
Nested Class Summary | |
---|---|
static class |
HSLFFontInfo.FontRenderType
|
Constructor Summary | |
---|---|
HSLFFontInfo(FontEntityAtom fontAtom)
Creates a new instance of HSLFFontInfo and initialize it from the supplied font atom |
|
HSLFFontInfo(FontInfo fontInfo)
|
|
HSLFFontInfo(java.lang.String typeface)
Creates a new instance of HSLFFontInfo with more or sensible defaults. |
Method Summary | |
---|---|
FontEntityAtom |
createRecord()
|
FontCharset |
getCharset()
|
FontFamily |
getFamily()
|
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects |
FontPitch |
getPitch()
|
HSLFFontInfo.FontRenderType |
getRenderType()
|
java.lang.String |
getTypeface()
|
boolean |
isEmbedSubsetted()
|
boolean |
isFontSubstitutable()
|
void |
setCharset(FontCharset charset)
Sets the charset |
void |
setEmbedSubsetted(boolean embedSubset)
|
void |
setFamily(FontFamily family)
Sets the font family class |
void |
setFontSubstitutable(boolean isSubstitutable)
|
void |
setIndex(int index)
Sets the index within the collection of Font objects |
void |
setPitch(FontPitch pitch)
Set the font pitch |
void |
setRenderType(HSLFFontInfo.FontRenderType renderType)
|
void |
setTypeface(java.lang.String typeface)
Sets the font name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HSLFFontInfo(java.lang.String typeface)
If you don't use default fonts (see HSLFFontInfoPredefined
) then the results
of the font substitution will be better, if you also specify the other properties.
typeface
- the font namepublic HSLFFontInfo(FontEntityAtom fontAtom)
public HSLFFontInfo(FontInfo fontInfo)
Method Detail |
---|
public java.lang.Integer getIndex()
FontInfo
getIndex
in interface FontInfo
public void setIndex(int index)
FontInfo
setIndex
in interface FontInfo
index
- the index within the collection of Font objectspublic java.lang.String getTypeface()
getTypeface
in interface FontInfo
public void setTypeface(java.lang.String typeface)
FontInfo
setTypeface
in interface FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificpublic void setCharset(FontCharset charset)
FontInfo
setCharset
in interface FontInfo
charset
- the charsetpublic FontCharset getCharset()
getCharset
in interface FontInfo
public FontFamily getFamily()
getFamily
in interface FontInfo
public void setFamily(FontFamily family)
FontInfo
setFamily
in interface FontInfo
family
- the font family classpublic FontPitch getPitch()
getPitch
in interface FontInfo
null
if unsupportedpublic void setPitch(FontPitch pitch)
FontInfo
setPitch
in interface FontInfo
pitch
- the font pitchpublic HSLFFontInfo.FontRenderType getRenderType()
public void setRenderType(HSLFFontInfo.FontRenderType renderType)
public boolean isEmbedSubsetted()
public void setEmbedSubsetted(boolean embedSubset)
public boolean isFontSubstitutable()
public void setFontSubstitutable(boolean isSubstitutable)
public FontEntityAtom createRecord()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |