Open EliotRagueneau opened 2 weeks ago
If you change the font to something like Helvetica Neue or Courier, do you still see this behaviour?
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 :/
Environment info
Current (buggy) behaviour
What does the bug do?
The font seems to change the kerning upon reaching a certain threshold of zooming.
https://github.com/cytoscape/cytoscape.js/assets/42945601/541931d1-a52c-42b2-940b-fcd6ff717af4
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.