APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.font

public Class FontConfigManager

extends Object
Class Inheritance
Imports
java.io.File, .FileInputStream, .IOException, java.util.ArrayList, .HashMap, .Locale, .Properties

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static boolean
private static String
pack-priv static boolean
private static FontConfigManager.FcCompFont[]
private static final String[]
pack-priv static boolean
pack-priv static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
private static String
public static ArrayList<String>
getFileNames(FontConfigManager.FcCompFont font, boolean fallBacksOnly)

private static native boolean
getFontConfig(String locale, FontConfigManager.FcCompFont[] fonts, boolean includeFallbacks)

public static FontConfigManager.FcCompFont
getFontConfigFont(String fxFamilyName, boolean bold, boolean italic)

private static String[]
public static ArrayList<String>
getFontNames(FontConfigManager.FcCompFont font, boolean fallBacksOnly)

private static synchronized void
private static String
public static void
populateMaps(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)

private static native boolean
populateMapsNative(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

debugFontsback to summary
pack-priv static boolean debugFonts
defaultFontFileback to summary
private static String defaultFontFile
fontConfigFailedback to summary
pack-priv static boolean fontConfigFailed
fontConfigFontsback to summary
private static FontConfigManager.FcCompFont[] fontConfigFonts
fontConfigNamesback to summary
private static final String[] fontConfigNames
useEmbeddedFontSupportback to summary
pack-priv static boolean useEmbeddedFontSupport
useFontConfigback to summary
pack-priv static boolean useFontConfig

Constructor Detail

FontConfigManagerback to summary
private FontConfigManager()

Method Detail

getDefaultFontPathback to summary
public static String getDefaultFontPath()
getFCLocaleStrback to summary
private static String getFCLocaleStr()
getFileNamesback to summary
public static ArrayList<String> getFileNames(FontConfigManager.FcCompFont font, boolean fallBacksOnly)
getFontConfigback to summary
private static native boolean getFontConfig(String locale, FontConfigManager.FcCompFont[] fonts, boolean includeFallbacks)
getFontConfigFontback to summary
public static FontConfigManager.FcCompFont getFontConfigFont(String fxFamilyName, boolean bold, boolean italic)
getFontConfigNamesback to summary
private static String[] getFontConfigNames()
getFontNamesback to summary
public static ArrayList<String> getFontNames(FontConfigManager.FcCompFont font, boolean fallBacksOnly)
initFontConfigLogFontsback to summary
private static synchronized void initFontConfigLogFonts()
mapFxToFcLogicalFamilyNameback to summary
private static String mapFxToFcLogicalFamilyName(String fxName)
populateMapsback to summary
public static void populateMaps(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)
populateMapsNativeback to summary
private static native boolean populateMapsNative(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)
com.sun.javafx.font back to summary

private Class FontConfigManager.EmbeddedFontSupport

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static String
private static boolean
private static String
pack-priv static String[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static boolean
exists(final File f)

private static String
getStyleStr(int style)

private static void
pack-priv static void
initLogicalFonts(FontConfigManager.FcCompFont[] fonts)

Logical Font Support for FX on embedded platforms Reads a simple properties file which defines the 3 font families "sans", "serif", "monospace".

pack-priv static void
populateMaps(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fontDirback to summary
private static String fontDir
fontDirFromJREback to summary
private static boolean fontDirFromJRE
fontDirPropback to summary
private static String fontDirProp
jreFontsPropertiesback to summary
pack-priv static String[] jreFontsProperties

Constructor Detail

EmbeddedFontSupportback to summary
private EmbeddedFontSupport()

Method Detail

existsback to summary
private static boolean exists(final File f)
getStyleStrback to summary
private static String getStyleStr(int style)
initEmbeddedFontsback to summary
private static void initEmbeddedFonts()
initLogicalFontsback to summary
pack-priv static void initLogicalFonts(FontConfigManager.FcCompFont[] fonts)

Logical Font Support for FX on embedded platforms Reads a simple properties file which defines the 3 font families "sans", "serif", "monospace". This uses fontconfig names because the interface to access this goes via internal APIs which communicate with FontConfig. The format using sans as an example, looks like sans.regular.0.font=Arial sans.regular.0.file=Arial.ttf sans.bold.0.font=Arial Bold sans.bold.0.file=Arial-Bold.ttf sans.italic.0.font=Arial Italic sans.italic.0.file=Arial-Italic.ttf sans.bolditalic.0.font=Arial Bold Italic sans.bolditalic.0.file=Arial-BoldItalic.ttf Additional fonts for each style would be indexed 1, 2, etc .. The fonts must be made visible to the embedded FX - see populateMaps()

populateMapsback to summary
pack-priv static void populateMaps(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap, HashMap<String, ArrayList<String>> familyToFontListMap, Locale locale)
com.sun.javafx.font back to summary

public Class FontConfigManager.FcCompFont

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public FontConfigManager.FontConfigFont[]
public String
public String
public FontConfigManager.FontConfigFont
public int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allFontsback to summary
public FontConfigManager.FontConfigFont[] allFonts
fcFamilyback to summary
public String fcFamily
fcNameback to summary
public String fcName
firstFontback to summary
public FontConfigManager.FontConfigFont firstFont
styleback to summary
public int style

Constructor Detail

FcCompFontback to summary
public FcCompFont()
com.sun.javafx.font back to summary

public Class FontConfigManager.FontConfigFont

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public String
public String
public String
public String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

familyNameback to summary
public String familyName
fontFileback to summary
public String fontFile
fullNameback to summary
public String fullName
styleStrback to summary
public String styleStr

Constructor Detail

FontConfigFontback to summary
public FontConfigFont()