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

Aspekta Variable Font woff2 weight 400 does not handle left and right quote glyphs #17

Open
scottykaye opened this issue Jun 17, 2024 · 5 comments
Labels
bug Confirmed issue

Comments

@scottykaye
Copy link

Steps to Reproduce

  • Use aspekta variable font at weight 400 on a site
  • use left “ and right ” quote marks (in our use case, regular quotes " are updated to left and right quotes by notion and displayed that way on site)
  • see that at font size 400 the quotes are a single foot instead of double for only weight 400

Current Behavior

You can see at font weight 300 and 500, left and right quotes are treated as double correctly, but not correctly at 400.

Screenshot 2024-06-17 at 3 19 48 PM

Expected Behavior

Expected for left and right quotes to output correctly as double quotes

Additional Details

Heres a reproduction in codepen. It's possible the URL goes away when we push up a deploy, I will do my best to keep it in sync.

Thanks!

Version

2.0.0

@ivodolenc
Copy link
Owner

Hi, yes, strange behavior.

It works as expected in desktop apps, so it's probably rendering issue in the woff2 format or in browsers.

Try using Aspekta Variable in ttf format for now, I just tested it and it works ok.

Download Official Aspekta Typeface


This quick fix works too in the woff2 format:

<!-- set `font-weight` to 401 or 399 -->
<li style="font-weight: 401">
    Font Weight 400: Left quote: “ Right Quote: ”
</li>

@scottykaye
Copy link
Author

Hey, thanks for such a quick response!

Leaning toward going with the 401 solution only because the size of the font as woff2 is 29KB vs TTF is 68KB so we get a bit of a performance gain from the woff2.

This should work fine for us. Curious if you think this is something that may be fixed in the future?

@ivodolenc
Copy link
Owner

Yes, it needs to be fixed in future releases, but as I said, since it works fine in desktop apps and in ttf format, it's most likely a problem in woff2 format.

The mentioned quotes are built from smart components so they should display normal.

@ivodolenc ivodolenc added the bug Confirmed issue label Jun 18, 2024
@scottykaye
Copy link
Author

Thanks so much!

@ivodolenc
Copy link
Owner

Np, tnx for reporting 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed issue
Projects
None yet
Development

No branches or pull requests

2 participants