Skip to content

Make menu font size configurable #1099

Open
@glistok

Description

@glistok

Describe the request

Please add a setting to configure the font size in the menus.

Describe the current behavior

The current size is too small for me to read. It needs to be in the range of font size 20 to 24.

Arduino IDE version

2

Operating system

Windows

Operating system version

11

Additional context

Additional requests

Related

Workaround

You can control the scale of the entire Arduino IDE user interface using the --force-device-scale-factor flag.

This is different from Arduino IDE's Edit > Increase Font Size / Decrease Font Size feature (when the "Interface scale: ☐ Automatic" preference is enabled) because that feature scales up all UI components other than the menu bar and menus, while --force-device-scale-factor scales up the entire UI. This means you can use both features together to increase the menu font size by first using --force-device-scale-factor to scale up the size of the entire UI, then Decrease Font Size to scale down the size of the rest of the UI:

  1. Select File > Quit from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Open a terminal in the Arduino IDE installation folder:
  3. Type the following command a the command prompt:
    • Windows:
      & ".\Arduino IDE" --force-device-scale-factor=<factor>
      
    • Linux:
      ./arduino-ide --force-device-scale-factor=<factor>
      
    • macOS:
      "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE" --force-device-scale-factor=<factor>
      
  4. Replace the <factor> placeholder in the command with the factor by which you want to increase the scale of the menu text.
    For example, if you wanted to increase the scale of the menu by a factor of 1.5, you would replace the <factor> placeholder with 1.5.
  5. Press the Enter key.
  6. Wait for Arduino IDE to finish starting.
  7. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  8. Check the box next to "Interface scale: ☐ Automatic" in the "Preferences" dialog.
    This setting causes the Edit > Increase Font Size / Decrease Font Size feature to scale the UI instead of only changing the font size.
  9. Click the "OK" button.
    The "Preferences" dialog will close.
  10. Select Edit > Decrease Font Size from the Arduino IDE menus.
    The scale of the Arduino IDE user interface will decrease, but the scale of the menu bar will remain the same.
  11. Repeat the previous step until the scale of the rest of the Arduino IDE user interface is according to your preferences.

Once you have found your preferred scale factor, for the sake of convenience you can create a shortcut that starts Arduino IDE with the appropriate --force-device-scale-factor flag.

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: accessibilityEnabling the use of the software by everyonetopic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions