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

@font-face and text resize issues #3

Closed
ghost opened this issue May 17, 2010 · 6 comments
Closed

@font-face and text resize issues #3

ghost opened this issue May 17, 2010 · 6 comments

Comments

@ghost
Copy link

ghost commented May 17, 2010

Seems to be issues when using @font-face... instead of trying to explain it here... i did a quick screencast on the problems... http://screenr.com/prp

Thanks!

@desandro
Copy link
Owner

I believe the gap is created because the script measure the height of each div before the @font-face fonts is loaded into the page.

One solution is to call Masonry within $(window).load() instead of $(document).ready(). This way, the script will run after all the contents of the page are loaded. It's the same solution to use when you want images to load before Masonry arranges the content.

This solved the problem for me in Firefox & Safari.

I've opened a new issue regarding text resize issues

@ghost
Copy link
Author

ghost commented May 18, 2010

Nice... seems to work for me too... thanks!

@nornagon
Copy link

Is there a way to hook a jquery method into the 'font loaded' event rather than the 'window loaded' event? I'm already specifying all my image widths/heights, and it sucks having to wait for them all to load before the layout happens.

@desandro
Copy link
Owner

@nornagon This is exactly what the Web Font Loader & Typekit Font Events are designed for. See also Google documentation

@nornagon
Copy link

Cheers :)

@Dmi3yy
Copy link

Dmi3yy commented May 24, 2013

Not good solution

if you run masonri onload
it is seen as the rebuilt units that are not very nice because a decision is not always helpful

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

No branches or pull requests

3 participants