tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.52k stars 3.08k forks source link

Font height option? #1204

Open mark-night opened 3 years ago

mark-night commented 3 years ago

This is more a question rather than issue, I've searched everywhere with no luck, might have been searching in wrong direction, as I don't know the correct term for this:

Is it possible to make Fira Code a little bit shorter in font height, so that characters look "fatter", just like in Source Code Pro? I personally feel much more relax if characters are not that tall, or narrow.

Source Code Pro is perfect for this but it doesn't come with ligatures. Hasklig brings ligatures but doesn't cover many languages as Fira Code does.

I love everything about Fira Code, but it'd be perfect if there is an option or a way to make the font the same height of Source Code Pro. Is this possible? What is the correct term to describe this if I search for a solution?

It's a very personal preference, I just feel way much relax if characters don't look that thin and "stick" together (I'm not talking about character spacing, which is perfect with Fira Code). Don't understand why most code fonts tend to prefer thin character more, maybe just to fit more characters in limited screen width?

Thanks.

tonsky commented 3 years ago

just to fit more characters in limited screen width

I think that’s the reason, yes.

What is the correct term to describe this if I search for a solution?

Character width, yes. You are looking for a wider font.

if there is an option or a way to make the font the same height

I’m afraid it’s too hard. It would basically mean redrawing each and every glyph in the font. There’s no easy way to automagically make font “wider” and make it look good at the same time.

You might find this brief table I just made useful, maybe you’ll find font with the width you like better. Some of them has ligatures now, too:

fonts width

I recommend selecting based on lowercase, as most of your code is in lowercase. Uppercase proportions tend to affect look of the font much less.

wopian commented 3 years ago

I'll also add that Cascadia Code supports all (or almost all) ligatures from Fira Code since it's fairly high up on the lowercase side.

mark-night commented 3 years ago

@tonsky Thank you for the clear explain, very helpful. Didn't realize its a complicated work, I tried Inconsolota which has expanded variant, I thought it's just an option.....

blodsvorr commented 1 year ago

@tonsky This table is excellent! I'm glad to have found it while writing little helper function for a GUI constructor that converts from font point size to height & width in pixels. Veddy, veddy helpful. Grātiās tibi !