apache / apache/netbeans

Netbeans Font Chooser support for variable fonts

Open
#7,636 7 comments 0 reactions 0 assignees View on GitHub
Editor JDK bug kind:feature UI
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

# Case
- netbeans 22
- font & color profile

flatlaf dark

this is my first time use of NetBeans, i want to change the font of edior, screenshot is:
![image](https://github.com/user-attachments/assets/fa89872c-f152-4a25-9eb6-a27df3ad2419)

the `default` category maybe can change most font settings, the 'inherited' word maybe indicates that.

And i have installed a font names 'source code pro', downloaded from google font. It is a variable font, such as `source code pro extralight`, `source code pro regular`, `source code pro bold`. Font detail from windows settings as:
![image-2](https://github.com/user-attachments/assets/30a72177-976b-48dd-9b20-7c28c1ea9c36)

I found that Netbeans seems like it cant recognize other **source code pro** fonts, it can only see the first of them ordered by some rules, in my case , it is `source code pro extralight`, maybe sort by Windows internal feature or something ,i don't know much about this.

i tried to export configuration to a zip file, and replace the file content contains `source code pro extralight` to `source code pro regular`, and re-zip directories what extracted before, import it back, and Netbeans report `invalid zip file ***`, maybe the font i expect couldn't work or re-zip has errors?

# Compare to Eclipse font chooser
![image](https://github.com/user-attachments/assets/c70c91ef-4765-41d6-aa92-e8a84fd56f18)

# Suggest

If it possible, Netbeans could support font which is a variable font, the font list could list them all, or the font style could do the same thing.

I guess there is another solution for making font that i want to use works, that is uninstall other `source code pro` font, leave the one i prefer, maybe netbeans could see it.

### Use case/motivation

- Use variable font, if i installed a variable font, how can i use one of them?
- The font list doesn't contains what i expect to use.

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing the issue in NetBeans 22 with the installed variable Source Code Pro font and inspect the font chooser behavior; done means the chooser can list and select the available variable-font styles as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.