<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress.com Forums &#187; Topic: Keep default font from showing before TypeKit font</title>
		<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font</link>
		<description>WordPress.com Forums &#187; Topic: Keep default font from showing before TypeKit font</description>
		<language>en</language>
		<pubDate>Wed, 19 Jun 2013 23:35:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/keep-default-font-from-showing-before-typekit-font" rel="self" type="application/rss+xml" />

		<item>
			<title>windwhistle on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1132270</link>
			<pubDate>Wed, 23 Jan 2013 22:10:24 +0000</pubDate>
			<dc:creator>windwhistle</dc:creator>
			<guid isPermaLink="false">1132270@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>My son's a developer so I've seen behind the scenes what a struggle it is to make code work properly with multiple versions of half a dozen different browsers and at least as many different kinds of devices. My hat's off to those of you who can make it all work!
</p>
]]></description>
					</item>
		<item>
			<title>squarepixel on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1132167</link>
			<pubDate>Wed, 23 Jan 2013 20:28:34 +0000</pubDate>
			<dc:creator>squarepixel</dc:creator>
			<guid isPermaLink="false">1132167@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Yep, it's a tricky issue indeed. And the "magic" solution is always changing as the leading browsers update their behaviors...</p>
<p>If you want the in-depth story, this is probably the most knowledgeable article on the topic, by Paul Irish:</p>
<p><a href="http://paulirish.com/2009/fighting-the-font-face-fout/" rel="nofollow">http://paulirish.com/2009/fighting-the-font-face-fout/</a>
</p>
]]></description>
					</item>
		<item>
			<title>windwhistle on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1132153</link>
			<pubDate>Wed, 23 Jan 2013 20:18:49 +0000</pubDate>
			<dc:creator>windwhistle</dc:creator>
			<guid isPermaLink="false">1132153@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Thanks, designsimply. Between you and squarepixel, I will have learned a lot -- once I've thoroughly digested all this.
</p>
]]></description>
					</item>
		<item>
			<title>designsimply on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1132103</link>
			<pubDate>Wed, 23 Jan 2013 19:45:00 +0000</pubDate>
			<dc:creator>designsimply</dc:creator>
			<guid isPermaLink="false">1132103@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>I checked in with our Custom Fonts developers, and here's what I found out. We do adjust for FOUT if you are using the build in tools at <a href="http://en.support.wordpress.com/custom-design/custom-fonts/" rel="nofollow">http://en.support.wordpress.com/custom-design/custom-fonts/</a> but if you are using the advanced mode for fonts with Typekit, you need to make some adjustments in your custom CSS directly.</p>
<p>Great explanation from squarepixel about the details on this! I'll add to it just a little:  instead of removing the wf-active class (or adding additional rules to try to override them as squarepixel suggested), you can use the wf-loading class to simply hide the unstyled font so that it never loads. This is the recommended option shown at Typekit's site here:<br />
<a href="http://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/" rel="nofollow">http://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/</a></p>
<p>You need to copy their example CSS and adjust it based on the selectors you have chosen in your Typekit font kit. Doing it this way will also prevent you from having to change your custom CSS should you decide to change fonts again on the Typekit site. If you change selectors though, you'll still need to update the custom CSS to match.</p>
<p>Here is the CSS example from Typekit:</p>
<pre><code>.wf-loading .blog-title,
.wf-loading .post-title {
    /* Hide the blog title and post titles while web fonts are loading */
    visibility: hidden;
}</code></pre>
<p>You should replace the ".blog-title" and ".post-title" parts with your selectors and add the updated CSS to your Appearance &#8594; Custom Design &#8594; CSS editor.
</p>
]]></description>
					</item>
		<item>
			<title>windwhistle on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1132003</link>
			<pubDate>Wed, 23 Jan 2013 18:07:54 +0000</pubDate>
			<dc:creator>windwhistle</dc:creator>
			<guid isPermaLink="false">1132003@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Thank you! That fixed it in both Chrome and Firefox. I'd have never figured that out with my very elementary knowledge of CSS.
</p>
]]></description>
					</item>
		<item>
			<title>squarepixel on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1131940</link>
			<pubDate>Wed, 23 Jan 2013 16:58:34 +0000</pubDate>
			<dc:creator>squarepixel</dc:creator>
			<guid isPermaLink="false">1131940@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>The phenomenon you see is what designers like to call the FOUT - "Flash of Unstyled Content". It's a behavior that is browser dependent.</p>
<p>Until recently, it was mostly seen in  Firefox, which was immediately displaying text with the fallback font, then replacing it when the webfont has loaded.</p>
<p>Another behavior has been applied by Chrome, Safari and IE, which display a blank space until the font has loaded. To prevent end-user frustration on slow networks, browsers have also implemented a default 3-second timeout: if the font never loads, the fallback gets applied.</p>
<p>Many designers wanted a consistent behavior across all browsers, so the Google Webfonts team together with Typekit have created a javascript solution, that allows to tell the browser how to behave (show the default immediately, or wait until the webfont loads). </p>
<p>That script is called the webfont loader:<br />
<a href="https://developers.google.com/webfonts/docs/webfont_loader" rel="nofollow">https://developers.google.com/webfonts/docs/webfont_loader</a><br />
It adds CSS classes like .wf-loading, .wf-active, and .wf-active, which allows you to define in your stylesheets what font gets applied when.</p>
<p>Some time after that, Firefox listened to webdesigners and adopted the same behavior as Chrome etc. So this javascript workaround isn't needed, unless you <em>want</em> users to see the FOUT (perhaps for accessibility reasons).</p>
<p>However, if you have a look at the styles applied to your site header, you will notice that that font is applied with the following rules:</p>
<p>.wf-active #header #logo .title .site-title, .wf-active #header #logo .title a {<br />
    font-family: "john-doe",Palatino,“Palatino Linotype”,"Book Antiqua",Georgia,Times,“Times New Roman”,serif !important;<br />
}</p>
<p>Notice the .wf-active class - that's the issue here. To get the behavior you're looking for, you should remove that class from your custom CSS:</p>
<p>#header #logo .title .site-title, #header #logo .title a {<br />
    font-family: "john-doe",Palatino,“Palatino Linotype”,"Book Antiqua",Georgia,Times,“Times New Roman”,serif !important;<br />
}</p>
<p>I hope this helps :)<br />
Manu
</p>
]]></description>
					</item>
		<item>
			<title>windwhistle on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1131918</link>
			<pubDate>Wed, 23 Jan 2013 16:36:38 +0000</pubDate>
			<dc:creator>windwhistle</dc:creator>
			<guid isPermaLink="false">1131918@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Thanks!
</p>
]]></description>
					</item>
		<item>
			<title>designsimply on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1131895</link>
			<pubDate>Wed, 23 Jan 2013 16:16:41 +0000</pubDate>
			<dc:creator>designsimply</dc:creator>
			<guid isPermaLink="false">1131895@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Thanks for the note. I'll check in with our developers to find out if there's anything we can do from our side.
</p>
]]></description>
					</item>
		<item>
			<title>windwhistle on "Keep default font from showing before TypeKit font"</title>
			<link>http://en.forums.wordpress.com/topic/keep-default-font-from-showing-before-typekit-font#post-1130764</link>
			<pubDate>Tue, 22 Jan 2013 18:58:28 +0000</pubDate>
			<dc:creator>windwhistle</dc:creator>
			<guid isPermaLink="false">1130764@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>I had to go to TypeKit to get the font I wanted for my header/logo. However, the default font still displays for a second before the TypeKit font kicks in and covers/replaces it. Is there any way to keep the default font from showing? It spoils the presentation by announcing "Hey, look how I'm changing this font!"</p>
<p>I tried changing it to white, but that, of course, made the TypeKit font white.
</p>
]]></description>
					</item>

	</channel>
</rss>
