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

Bigtext only fires after Window resize #24

Closed
kaspar-allenbach opened this issue Jul 19, 2012 · 5 comments
Closed

Bigtext only fires after Window resize #24

kaspar-allenbach opened this issue Jul 19, 2012 · 5 comments
Assignees

Comments

@kaspar-allenbach
Copy link

Hi.

I've implemented bigtext. The text is only resized to the parent element after I resize the browser window.

Why is that?

This is my js:

$(document).ready(function() { $('#bigtext').bigtext(); });

This is my html:
<div id="bigtext" style="width: 100%"><div class="temp">28.50°</div></div>

This is my css:
.temp{ font-family: "league-gothic",sans-serif; font-weight: 400; color: #2EA959; line-height: 1; }

I load the typekit font via standard snipets. not with the fontloader api.
It happens in webkit and also in FF.

@monobasic
Copy link

same problem here... any idea?

@toddsantoro
Copy link

Did any of you get this issue fixed??? I am having the same problem.

@carlosceia
Copy link

same for me here, any clues on how to solve this?

@icoloma
Copy link

icoloma commented May 24, 2014

This seems like a duplicate of #16

@zachleat
Copy link
Owner

Yes, @icoloma, I think you’re right. Thank you.

Use font load events or a polyfill to trigger bigtext after league gothic has loaded.

Here are two polyfills:
https://github.com/zachleat/fontfaceonload
https://github.com/bramstein/fontfaceobserver/

@zachleat zachleat self-assigned this Feb 28, 2015
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

6 participants