feat: reduce file size by removing by removing fonts #759

Merged
konrad merged 2 commits from dpschen/frontend:feature/reduce-file-size-by-removing-font-weights into main 2021-09-23 14:07:09 +00:00
Member

The fonts were either not used at all (300) or used so rarely that it makes sense to replace them by other weights (500).

The navigation still looks good.

For the future it might make sense to use variable fonts instead. Then the 500 weight could be used again without a size impact.
Both fonts do exist in a variable editon:

EDIT: See #778

The fonts were either not used at all (300) ~~or used so rarely that it makes sense to replace them by other weights (500).~~ ~~The navigation still looks good.~~ For the future it might make sense to use variable fonts instead. Then the 500 weight could be used again without a size impact. Both fonts do exist in a variable editon: - https://github.com/googlefonts/opensans/tree/main/fonts/variable - https://github.com/andrew-paglinawan/QuicksandFamily/blob/master/fonts/Quicksand%5Bwght%5D.ttf **EDIT:** See https://kolaente.dev/vikunja/frontend/issues/778
Owner

I'm not quite conviced. What's bothering me is that the font weight is not the same for menu items and lists/filters:

image

And it looks like the font used for list in the menu is not Open Sans anymore but some random font from my system? That might be an issue with the bulma variables though. EDIT: Yup, bulma issue. Updated the branch and it looks fine, nevermind the noise.

I'm not quite conviced. What's bothering me is that the font weight is not the same for menu items and lists/filters: ![image](/attachments/becd9272-7f0e-4aa0-9683-76a69bec543d) ~~And it looks like the font used for list in the menu is not Open Sans anymore but some random font from my system? That might be an issue with the bulma variables though.~~ **EDIT**: Yup, bulma issue. Updated the branch and it looks fine, nevermind the noise.
konrad added the
changes requested
label 2021-09-21 19:09:11 +00:00
Author
Member

EDIT: Yup, bulma issue. Updated the branch and it looks fine, nevermind the noise.

Okay :) Not sure what I should change then.

> EDIT: Yup, bulma issue. Updated the branch and it looks fine, nevermind the noise. Okay :) Not sure what I should change then.
Owner

What's bothering me is that the font weight is not the same for menu items and lists/filters

This is still an issue - the bulma thing was about using a different font being used in the lists.

> What's bothering me is that the font weight is not the same for menu items and lists/filters This is still an issue - the bulma thing was about using a different font being used in the lists.
Author
Member

What's bothering me is that the font weight is not the same for menu items and lists/filters

This is still an issue - the bulma thing was about using a different font being used in the lists.

Okay. Maybe let's remove just the 300 for now (can't find any reference) and keep the 500. I agree that it looks better. I think I was just overoptimizing here :D

I will open a (not very important but interesting) issue for the variable fonts.

> > What's bothering me is that the font weight is not the same for menu items and lists/filters > > This is still an issue - the bulma thing was about using a different font being used in the lists. Okay. Maybe let's remove just the 300 for now (can't find any reference) and keep the 500. I agree that it looks better. I think I was just overoptimizing here :D I will open a (not very important but interesting) issue for the variable fonts.
dpschen force-pushed feature/reduce-file-size-by-removing-font-weights from 5757c111b7 to 631ad0b446 2021-09-22 18:53:52 +00:00 Compare
dpschen force-pushed feature/reduce-file-size-by-removing-font-weights from 631ad0b446 to 89fd09aa92 2021-09-22 18:55:29 +00:00 Compare
dpschen added 1 commit 2021-09-22 21:36:51 +00:00
Author
Member

@konrad not sure why the pipeline fails.
Now I'm just removing that one font file and it's import.

@konrad not sure why the pipeline fails. Now I'm just removing that one font file and it's import.
Owner

Restarted the build, seems to pass now.

Restarted the build, seems to pass now.
konrad merged commit 6b1bf27bf8 into main 2021-09-23 14:07:09 +00:00
konrad deleted branch feature/reduce-file-size-by-removing-font-weights 2021-09-23 14:07:09 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.