DONE: Allow for more weights in fonts to choose from

Make a request or discuss new features.
Post Reply
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

DONE: Allow for more weights in fonts to choose from

Post by pjj »

At the moment, when customizing a theme, one can only set normal or bold weight for a given font; however, modern editor fonts come with more than these two weights: up to 9, if I'm not mistaken (cf. Thin - ExtraLight - Light - Regular - Medium - SemiBold - Bold - ExtraBold - Heavy in Iosevka). Of course some has less than that, e.g. Fira Code has 5: Light - Regular - Medium - SemiBold - Bold. (There may be also distinction in slope, namely italic and oblique, but let's put this aside for now.)

Currently I use Fira Code and its bold is definitely too thick for me; however Medium or Semibold could just work. Would you please look into it?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6566
Joined: 19 Jul 2006 14:29

Re: Allow for more weights in fonts to choose from

Post by Rickard Johansson »

Added in next release (v16.10).

Delphi VCL can not handle font weight. It can only handle bold, or not bold. I had to create some workaround and I wasn't sure it was going to work, but...

2023-12-10_193613.png
2023-12-10_193613.png (10.98 KiB) Viewed 1367 times

The keyword "push" is drawn using ExtraBold font weight, while the comments use SemiBold and Italic.

2023-12-10_193734.png
2023-12-10_193734.png (6.71 KiB) Viewed 1367 times

The items in the "Boldness" list are grayed if the current font doesn't support a font weight. You can still select it, since it may be supported by another font.

I'm still making some tweaks...
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: DONE: Allow for more weights in fonts to choose from

Post by pjj »

Rickard Johansson wrote: 10 Dec 2023 19:44 The keyword "push" is drawn using ExtraBold font weight, while the comments use SemiBold and Italic.
So, you pushed some extra weight, eh? :-D

Image

I'm thrilled to give it a try. Huge thanks!
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply