| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static double | fontScale
Calculate a default scale factor for fonts in this L&F; to match the reported resolution of the screen. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | Returns: the size of the font described by pangoName (e.g. if pangoName is "Sans Italic 10", then this method returns 10)a String describing a pango font pangoName)Parses a String containing a pango font description and returns the (unscaled) font size as an integer. |
| pack-priv static Font | Returns: a Font object as a FontUIResource or null if no suitable font could be created.a String describing a pango font
e.g. "Sans Italic 10" pangoName)Parses a String containing a pango font description and returns a Font object. |
| CHARS_DIGITS | back to summary |
|---|---|
| public static final String CHARS_DIGITS | |
| fontScale | back to summary |
|---|---|
| private static double fontScale Calculate a default scale factor for fonts in this L&F to match the reported resolution of the screen. Java 2D specified a default user-space scale of 72dpi. This is unlikely to correspond to that of the real screen. The Xserver reports a value which may be used to adjust for this. and Java 2D exposes it via a normalizing transform. However many Xservers report a hard-coded 90dpi whilst others report a calculated value based on possibly incorrect data. That is something that must be solved at the X11 level Note that in an X11 multi-screen environment, the default screen is the one used by the JRE so it is safe to use it here. | |
| PangoFonts | back to summary |
|---|---|
| pack-priv PangoFonts() | |
| getFontSize | back to summary |
|---|---|
| pack-priv static int getFontSize(String pangoName) Parses a String containing a pango font description and returns the (unscaled) font size as an integer.
| |
| lookupFont | back to summary |
|---|---|
| pack-priv static Font lookupFont(String pangoName) Parses a String containing a pango font description and returns a Font object. | |