Skip to content

Windows 200% scale FontDialog list texts too big #2923

@Phillipus

Description

@Phillipus
  • Eclipse 4.38
  • Windows 11
  • Display set to 200% scaling

When opening a FontDialog the text in the "Font" and "Font Style" lists is bigger than it should be.

(This is not #2866 but a continuation of that.)

Run the Snippet with the property set to true and false.

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.widgets.FontDialog;
import org.eclipse.swt.widgets.Shell;

public class FontDialogWindowsDoubled {
    
    public static void main(String[] args) {
        System.setProperty("swt.autoScale.updateOnRuntime", "true");
        
        Shell shell = new Shell();
        
        FontData fd = new FontData("Arial", 9, SWT.NORMAL);
        FontDialog dialog = new FontDialog(shell);
        dialog.setFontList(new FontData[] { fd });
        dialog.open();
    }
}

The text in the dialog's lists is bigger than it should be.

This is how it should be if set to false:

Image

This is how it is if set to true:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions