0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.8k stars 482 forks source link

[Bug] Unable to choose font with Extended/Expanded width #905

Open VladWinner opened 3 years ago

VladWinner commented 3 years ago

Describe the bug It is not possible to select a font with an extended width, except in cases where extended/expanded style of font is the only one (of entire font family) that installed on the computer (but even in this case fonts are not showed as "Extended" in list menu). There is no option for selecting this width.

To Reproduce For example, you can download .zip archive with "TTF" or "Unhinted" open-source Iosevka font and install two fonts: iosevka-regular.ttf and iosevka-extended.ttf. There will be no "Iosevka Extended" option in the font selection list menu. image

Expected behavior Two possible behaviors: 1) The font with expanded width is displayed as a separate "Iosevka Extended" in first font selection list menu ("Default Font & Size"). This behavior is seen in Notepad++ image

2) Extended/expanded style becomes available in second font selection list menu ("Default Font Style"). This behavior is seen in system Notepad app (Win7+) and AkelPad image

Desktop:

Additional context Other fonts with an extended font style are also not displayed in Notepads. Renaming "Extended" width to "Expanded" in any font also doesn't solve the issue. Information about the width name to add to Notepads: image I assume that the name of this width should be specified in the same place where commit c018bc79fe26fcf1b37b2fcd12d738495c0d074d code was added

VladWinner commented 3 years ago

This also doesn't work with TTC and Super-TTC format (extended width option is missing) image image