adam7 / delugia-code

Can we add Nerd Fonts to Cascadia Code Font using a GitHub Action
MIT License
571 stars 33 forks source link

[Question]: how to get the italic fontface look like in readme? #73

Closed younger-1 closed 2 years ago

younger-1 commented 2 years ago

I installed the latest release of delugia and delugia-book. In my system, it looks like: a

But in readme, the displayed italic fontface have different appearance.

b

How can I get the italic fontface look like in readme?

Finii commented 2 years ago

You mean the small L (Ell) (l) ?

There was something, let me check.

Please tell if you mean something else.

Edit: Typo and improve letter description

Finii commented 2 years ago

'Curly' italic is in OpenType Stylistic Set 1:

image

You need to activate that (SS1).

This is the case since Cascadia Code revision 2106.17

image

Remark: I know, most applications are not able to give you all features in an OpenType font, so in your application it may not be selectable. Sorry we can not do anything about it. Some of the fonts I use have nice swashes, and with Ubuntu the only thing that seems to support them is Scribus... sigh. On Windows the last time I looked (which is some years ago) the MS equivalent of Impress was not even able to do it (what is is called? Power something). On Windows the only thing that worked was MS Publisher or so? But then, I read somewhere else, that VisualCode does support OpenType stuff, and one can select that. Not checked.

Any hints on applications that utilize all OpenType features are welcome.

Finii commented 2 years ago

See https://github.com/microsoft/cascadia-code/issues/468 and https://github.com/microsoft/cascadia-code/issues/503

Obviously Sublime Text can also handle OpenType features: image

younger-1 commented 2 years ago

Thanks very much.

younger-1 commented 2 years ago

I was originly looking for stylistic set support for alacritty which is far away complete https://github.com/alacritty/alacritty/issues/3166 And vscode support stylistic set by configuring editor.fontLigatures.

图片

To my surprise, windows terminal recently added support for both stylistic set and font axes which support disable rules. 图片

Finii commented 2 years ago

Hooray :-)

And I also learned of https://github.com/twardoch/fonttools-opentype-feature-freezer

So you can just so something along these lines

$ pip install --upgrade opentype-feature-freezer
$ pyftfeatfreeze -f ss01 -S -U Curly ~/.local/share/fonts/DelugiaComplete-Italic.ttf.featfreeze.otf DelugiaCurlyComplete-Regular.otf

or omit -S -U Curly and replace the normal -Italic file.

Works effortlessly:

image

Finii commented 2 years ago

Thinking: Hmm, vertical stuff being really vertical on slanted font?? WTF?

image

younger-1 commented 2 years ago

So you can just so something along these lines

$ pip install --upgrade opentype-feature-freezer
$ pyftfeatfreeze -f ss01 -S -U Curly ~/.local/share/fonts/DelugiaComplete-Italic.ttf.featfreeze.otf DelugiaCurlyComplete-Regular.otf

😆very interesting little stuff

younger-1 commented 2 years ago

Thinking: Hmm, vertical stuff being really vertical on slanted font?? WTF?

😂so strange vertical bar, beyond my comprehension

kenmcd commented 2 years ago

Thinking: Hmm, vertical stuff being really vertical on slanted font?? WTF?

Italic version: make the vertical pipe character actually vertical #507 https://github.com/microsoft/cascadia-code/issues/507