Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update font when nerd fonts updated #76

Closed
latipun7 opened this issue Sep 8, 2022 · 9 comments · Fixed by #77
Closed

Update font when nerd fonts updated #76

latipun7 opened this issue Sep 8, 2022 · 9 comments · Fixed by #77

Comments

@latipun7
Copy link

latipun7 commented Sep 8, 2022

As I understand, this font updated when new cascadia code updated. But, when new nerd fonts updated with its added icons and bug fixes, this font not updated, just waiting for new cascadia code.

Please support updating font for the most updated cascadia code and nerd fonts.

Thank you.

@Finii
Copy link
Collaborator

Finii commented Sep 8, 2022

Well, the last Nerd Fonts updates just brought the features we have here to Nerd Fonts.
With Caskaydia Cove 2.2.2 I guess it is en par with Delugia.

Delugia has been the driver, the test bed of the new Nerd Font features; but that means Delugia uses a modified patching process. You are right we should get rid of that (see also #75).

And I can work only on one project at a time 😬 but in principle you are right.
Just getting out 2.2.0 and the bugfix releases over there took an extreme amount of time.

@trallnag
Copy link

With Caskaydia Cove 2.2.2 I guess it is en par with Delugia.

Is it though? Comparing I am still seeing a difference

Caskaydia Cove latest version

3

Delugia Book latest version

4

@Finii
Copy link
Collaborator

Finii commented Sep 27, 2022

Hmm, I just found 4 commits in my local repo, that are not here 😭
Too long done nothing. Can't remember...

image

@Finii
Copy link
Collaborator

Finii commented Sep 27, 2022

With Caskaydia Cove 2.2.2 I guess it is en par with Delugia.

Is it though? Comparing I am still seeing a difference

That might be the here-missing PPEM fix ryanoasis/nerd-fonts#761

image
From the CI run here

@Finii
Copy link
Collaborator

Finii commented Sep 27, 2022

@latipun7 @trallnag Maybe you want to / can check Delugia after the update.

The artifacts can be downloaded here:
https://github.com/adam7/delugia-code/actions/runs/3137726398

@trallnag
Copy link

trallnag commented Sep 27, 2022

I checked and there is still a difference. In the Windows font preview I noticed that Delugia has "TrueType Outlines" while Caskaydia uses "PostScript Outlines".

caskaydia

delugia

ezgif com-gif-maker

Failing to compare it properly with the original Cascadia because for that font way more weights are showing up in the preview. So it's difficult to overlay them.

Before I tested it in Windows Terminal and there I'm seeing other differences. Looking through the projects issues suggests that the font rendering in WT is not perfect.


Crazy and unexpected (to me) how complex non-bitmap fonts are.

@trallnag
Copy link

trallnag commented Sep 27, 2022

Here is the difference in Windows Terminal on font 9 with Clear Type:

ezgif com-gif-maker

Anyway I don't want anyone to fix this or something like that. It is just interesting

Delugia certainly seems closer to the original in WT. But again, this could be due to WT rendering and look completely different in another app.

@Finii
Copy link
Collaborator

Finii commented Sep 28, 2022

Excellent report 👍

Anyway I don't want anyone to fix this or something like that. It is just interesting

Delugia certainly seems closer to the original in WT. But again, this could be due to WT rendering and look completely different in another app.

I guess you compare with Cascadia Code TTF? The Caskaydia Cove is OTF, which has more rendering information apart from the glyph shapes.

@Finii
Copy link
Collaborator

Finii commented Sep 28, 2022

Failing to compare it properly with the original Cascadia because for that font way more weights are showing up in the preview.

Probably you use the Variable Font version of Cascadia. You can think of that as the 'Regular' font but added mathematical routines to calculate other weights on the fly (by the rendering engine), so that there is only one set of outlines and not one set for each weight.

Crazy and unexpected (to me) how complex non-bitmap fonts are.

Almost nothing is 'hard coded' in the fonts, there are sets on sets of instructions and rules one can put into the file; code to be executed on render time... Plus there are 3 major players (Apple, MS, Adobe) that have different opinions and implement their own 'sets' 😬 ... well it got better over the last years.

@Finii Finii closed this as completed in #77 Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants