private static String getConfigEntry( List<String> config, String group, String key ) {
		int groupLength = group.length();
		int keyLength = key.length();
		boolean inGroup = false;
		for( String line : config ) {
			if( !inGroup ) {
				if( line.length() >= groupLength + 2 &&
					line.charAt( 0 ) == '[' &&
					line.charAt( groupLength + 1 ) == ']' &&
					line.indexOf( group ) == 1 )
				{
					inGroup = true;
				}
			} else {
				if( line.startsWith( "[" ) )
					return null;

				if( line.length() >= keyLength + 2 &&
					line.charAt( keyLength ) == '=' &&
					line.startsWith( key ) )
				{
					return line.substring( keyLength + 1 );
				}
			}
		}
		return null;
	}
Gets the default font for KDE from KDE configuration files.

The Swing fonts are not updated when the user changes system font size
(System Settings > Fonts > Force Font DPI). An application restart is necessary.
This is the same behavior as in native KDE applications.

The "display scale factor" (kdeglobals: [KScreen] > ScaleFactor) is not used
KDE also does not use it to calculate font size. Only forceFontDPI is used by KDE.
If user changes "display scale factor" (System Settings > Display and Monitors >
Displays > Scale Display), the forceFontDPI is also changed to reflect the scale factor.
flatlaf-core/src/main/java/com/formdev/flatlaf/LinuxFontPolicy.java