-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Collision Not Detected when Font not yet Loaded #108
Comments
👍 this. It helped me resolve an overlapping issue that popped up seemingly out of nowhere. Was using Google fonts and perhaps they changed the way they are retrieved? So I just removed the goog fonts and changed from Whole thing looks like this if it's helpful:
|
Hello, I wanted to raise this again. I'm trying to get the same effect as on the interactive example page, but I don't see any way to add in the Impact font (or any other named font) without breaking the positioning. Are there any other workarounds? Thanks,
Whoops, looks like I figured it out as below.
|
I had to deal with issues caused by loading a web-font when the word cloud is the only thing on the page and described my (different) solution here |
I ran into this problem and have seen it in two online examples as well:
http://bl.ocks.org/ericcoopey/6382449
https://www.pubnub.com/blog/2014-10-09-quick-word-cloud-from-a-chatroom-with-d3js/
Basically if you have a particular font, like something from Google fonts, if the font hasn't yet loaded to the page, the first draw will have words overlapping. The solution is to ensure that the css has been used via CSS prior to js execution. However it would be nice if there was an in library fix to this as it seems that it's a pretty common problem.
The text was updated successfully, but these errors were encountered: