public final class BookFont extends FontStore
for license details.| Modifier and Type | Field and Description |
|---|---|
private static BookFont |
fonts |
DEFAULT_FONT, DEFAULT_KEY, LANG_KEY_PREFIX| Modifier | Constructor and Description |
|---|---|
private |
BookFont()
Create a persistent Book Font Store.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
getFont(org.crosswire.jsword.book.Book book)
Get the most appropriate font for the book.
|
Font |
getFont(org.crosswire.common.util.Language language) |
static BookFont |
instance() |
boolean |
isSet(org.crosswire.jsword.book.Book book,
org.crosswire.common.util.Language lang)
Is a font for this book / language set in the properties file?
|
void |
resetFont(org.crosswire.jsword.book.Book book,
org.crosswire.common.util.Language lang)
Remove the entry for this book / language in the properties file and use
the default font
|
void |
setFont(org.crosswire.jsword.book.Book book,
Font font)
Set the font for the book.
|
getDefaultFont, getFont, getFontMap, getFontStore, getStoreName, isLoaded, load, obtainFont, resetFont, setDefaultFont, setFont, setFont, setFontMap, setFontStore, setLoaded, setStoreName, storeprivate static BookFont fonts
public static BookFont instance()
public void setFont(org.crosswire.jsword.book.Book book,
Font font)
book - the bookfont - the fontpublic Font getFont(org.crosswire.jsword.book.Book book)
book - the bookpublic Font getFont(org.crosswire.common.util.Language language)
public boolean isSet(org.crosswire.jsword.book.Book book,
org.crosswire.common.util.Language lang)
book - the book to testlang - the language to testtrue a font property was set, false
otherwisepublic void resetFont(org.crosswire.jsword.book.Book book,
org.crosswire.common.util.Language lang)