heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.86k stars 194 forks source link

Feature request: Arbitrary font string #166

Open endigma opened 8 months ago

endigma commented 8 months ago

Have you searched existing Github issues to see if someone has already requested this feature? Yes

Is your feature request related to a problem? Please describe. Having only a dropdown for font selection limits us to picking just one instead of a CSS font string, should should work just fine like it does in VSCode. This lets me write stuff like "Iosevka Extended" which isn't a font family but a style of a font family as the default.

Describe the solution you'd like Font selection area more like VSCode where you can enter a full CSS font-family string.

Describe alternatives you've considered I just edited it in the config file and it works for now.

heyman commented 8 months ago

I think having just a text input is bad/lazy UX (I suspect the queryLocalFonts API wasn't available in Electron when that feature in VSCode was implemented).

However, queryLocalFonts does return the full list of fonts, so it should be fixable without resorting to just a text input. There could be an additional select box for selecting Style.

image
endigma commented 8 months ago

You could do something like a typeahead as well