-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Font kerning non fixed upon zooming #3250
Comments
If you change the font to something like Helvetica Neue or Courier, do you still see this behaviour? |
It does somehow: CourierBugging.mov |
Some fonts render differently at different scales generally. Often you would not notice, because the changes from small changes in zoom level would be slight. Cytoscape uses visual caches. What you're seeing is a step function change in how the font is rendered rather than a smoother transition, because the cache is not used (or useful) when zoomed in very far. Given that the cache gives significant performance improvements and the changing the cache to accommodate fonts that vary widely would be expensive, it may be best to make a careful choice of font that wouldn't have this problem. Which font face are you using? |
I am using Roboto font. |
Open Sans is similar but does not exhibit this issue, as far as I'm aware. |
I really tried to repoduce the issue on the fiddle, but I couldn't manage to reproduce there, but in my usage context, its consistently happening on the same nodes, and is most visible when the text is overflowing the max width, see
I did try many fonts, and the problem is present with all of them :/ |
I noticed that the font problem occurs when zoom level is exactly bellow 1. |
Still the problem is there in my context |
The bug isn't reproducible in Safari |
From what I could see, it's a problem on Chrome and Chromium based browsers like Arc. Firefox and Safari do not have the issue |
Sounds like a Chromium issue then. Maybe there’s an existing issue in their tracker that we could cross-reference?
…________________________________
From: Eliot Ragueneau ***@***.***>
Sent: Tuesday, July 9, 2024 8:54:19 AM
To: cytoscape/cytoscape.js ***@***.***>
Cc: Max Franz ***@***.***>; Comment ***@***.***>
Subject: Re: [cytoscape/cytoscape.js] Font kerning non fixed upon zooming (Issue #3250)
From what I could see, it's a problem on Chrome and Chromium based browsers like Arc. Firefox and Safari do not have the issue
—
Reply to this email directly, view it on GitHub<#3250 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHRO42NAYZAQOTFTLYFLJ3ZLPMPXAVCNFSM6AAAAABJQLWLM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGY2TINJYGI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Environment info
Current (buggy) behaviour
What does the bug do?
The font seems to change the kerning upon reaching a certain threshold of zooming.
FontKernelBug.mov
Desired behaviour
It should be consistent (Ideally with the situation when zoomed out, as it seems closer to the definitions).
Minimum steps to reproduce
Unfortunately I wasn't able to reproduce the issue in the demo
For reviewers
Reviewers should ensure that the following tasks are carried out for incorporated issues:
master
,unstable
, and1.1.x
if the current release is 1.2).bug
, if necessary.The text was updated successfully, but these errors were encountered: