Package com._1c.g5.v8.dt.common.ui.utils
Class FontListProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.utils.FontListProvider
-
public class FontListProvider extends Object
TODO: migrate to some sort of real 1C provider from this mockup The class provides FontStyles arrays for "Style Font" list and for "System Font" list of 1C:FontListProvider#getList1()
,FontListProvider#getList2()
.
The class also provides array of names of available font families viagetFontNames()
.
It also holds dictionary of FontData objects for available fonts, each of which is accessible bygetFontData(String)
.
-
-
Field Summary
Fields Modifier and Type Field Description static FontListProvider
INCTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.FontData
getFontData(String fontName)
String[]
getFontNames()
Array of string font family names
-
-
-
Field Detail
-
INCTANCE
public static final FontListProvider INCTANCE
-
-
Method Detail
-
getFontNames
public String[] getFontNames()
Array of string font family names- Returns:
- array of names of available font families, never
null
-
getFontData
public org.eclipse.swt.graphics.FontData getFontData(String fontName)
- Parameters:
fontName
- name of a font family- Returns:
- FontData object matching the given fontName or default font, never
null
-
-