|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.font.config.ConfiguredFont
public class ConfiguredFont
Collector of information needed in order to register a font. Note that a font is first configured, then (possibly) later registered for use. This two-step process is useful in cases where the information is needed, but registration is deferred. The primary use case is for automatic font registration, where we may wish to parse some information from each font file. We may want to simply output a font-configuration file describing the content, or we may want to only read enough information to know the general characteristics of the font, without leaving the parser open.
Method Summary | |
---|---|
protected String |
getFamilyName()
Returns the family name. |
protected String |
getFontUrl()
Returns the URL of the font file. |
String |
getPostScriptName()
Returns the PostScript name for the encapsulated font file. |
protected org.axsl.font.Font.Style |
getStyle()
Returns the style of this font. |
protected org.axsl.font.Font.Weight |
getWeight()
Returns the weight of this font. |
String |
invalidMessage()
Returns null if this configured font is valid, or a message indicating why it is not valid. |
protected void |
setFamilyName(String familyName)
Sets the family name. |
protected void |
setFontUrl(String fontUrl)
Sets the URL of the font file. |
protected void |
setPostScriptName(String postScriptName)
Sets the PostScript name for this font. |
protected void |
setStyle(org.axsl.font.Font.Style style)
Returns the style of this font. |
protected void |
setWeight(org.axsl.font.Font.Weight weight)
Sets the weight of this font. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String invalidMessage()
public String getPostScriptName()
protected void setPostScriptName(String postScriptName)
postScriptName
- The new postScriptName.protected String getFamilyName()
protected void setFamilyName(String familyName)
familyName
- The new family name.protected String getFontUrl()
protected void setFontUrl(String fontUrl)
fontUrl
- The URL of the font file.protected org.axsl.font.Font.Weight getWeight()
protected void setWeight(org.axsl.font.Font.Weight weight)
weight
- The new weight.protected org.axsl.font.Font.Style getStyle()
protected void setStyle(org.axsl.font.Font.Style style)
style
- The new style.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |