mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 23:37:13 -06:00
use larger font when running on WinPE (issue #279)
This commit is contained in:
@@ -443,12 +443,17 @@ public abstract class FlatLaf
|
|||||||
FontUIResource uiFont = null;
|
FontUIResource uiFont = null;
|
||||||
|
|
||||||
if( SystemInfo.isWindows ) {
|
if( SystemInfo.isWindows ) {
|
||||||
// on WinPE use "win.defaultGUI.font", which is usually Tahoma,
|
Font winFont = (Font) Toolkit.getDefaultToolkit().getDesktopProperty( "win.messagebox.font" );
|
||||||
// because Segoe UI font is not available on WinPE
|
if( winFont != null ) {
|
||||||
Font winFont = (Font) Toolkit.getDefaultToolkit().getDesktopProperty(
|
if( SystemInfo.isWinPE ) {
|
||||||
SystemInfo.isWinPE ? "win.defaultGUI.font" : "win.messagebox.font" );
|
// on WinPE use "win.defaultGUI.font", which is usually Tahoma,
|
||||||
if( winFont != null )
|
// because Segoe UI font is not available on WinPE
|
||||||
uiFont = createCompositeFont( winFont.getFamily(), winFont.getStyle(), winFont.getSize() );
|
Font winPEFont = (Font) Toolkit.getDefaultToolkit().getDesktopProperty( "win.defaultGUI.font" );
|
||||||
|
if( winPEFont != null )
|
||||||
|
uiFont = createCompositeFont( winPEFont.getFamily(), winPEFont.getStyle(), winFont.getSize() );
|
||||||
|
} else
|
||||||
|
uiFont = createCompositeFont( winFont.getFamily(), winFont.getStyle(), winFont.getSize() );
|
||||||
|
}
|
||||||
|
|
||||||
} else if( SystemInfo.isMacOS ) {
|
} else if( SystemInfo.isMacOS ) {
|
||||||
String fontName;
|
String fontName;
|
||||||
|
|||||||
Reference in New Issue
Block a user