Comments (6)
An even more serious problem is probably the use of document.write(). While it would be possible to make cufon.js work without it, I don't really see the point. One possible use case may be loading cufon only for browsers that do not support @font-face, but you'd almost certainly experience a delay if you loaded cufon.js that way.
from cufon.
I've added the xmlns:v="urn:schemas-microsoft-com:vml
namespace attribute and a strict doctype - and my dynamically loaded Cufon init script works beautifully in IE when I browse between pages - but the font replacement does not occur when I hit Ctrl-R or the Reload button.
It has me stumped at the moment. ...Arrr!
from cufon.
Update: It seems that three things are needed for sorry old MSIE 8 >:
- adding
xmlns:v="urn:schemas-microsoft-com:vml
namespace to the<head/>
- Strict
<!DOCTYPE>
- Hard-coded
<script>
link to the Cufon script.
Bottom-line: lazy-loading cufon seems impossible in MSIE 8 >
from cufon.
This should be rechecked again since #232 introduced support for asynchronous (delayed) loading.
from cufon.
I'm not sure that the commit #232 fixes the issue. In IE9, I get an "unspecified error" here:
var ns = document.namespaces;
(line 967 in current latest version)
I assume this is a symptom of the same issue as above, but I could be missing something here as I'm no JS expert. I am using deferred loading on my site, basically using this guy's technique (his first example): http://stackoverflow.com/a/5853358
Let me know if you need more info to help debug this issue (or let me know if I'm missing something super obvious).
Oh, oddly enough, refreshing the page makes the error magically no longer occur, and the font-replacement proceeds as usual. :P
from cufon.
@amatecha I'd like to get to the bottom of this. Can you prepare a minimal test case, just one html file (and CSS/JS as needed) with everything in it and create a gist? You can use "Vegur" font and omit it from your file as it is part of this project already.
from cufon.
Related Issues (20)
- Does cufon supports Devnagari script? HOT 3
- Margin / Padding / Line-height problems in IE8
- Capital "A" isn't rendering HOT 5
- Problem loading font on iOS devices where CSS media = print included
- Hover { hover: 'true' } doesn't work within HTML5 <nav> element
- Blurry text windows 8 mobile
- Animate Colour of Cufon Text
- Object required line 7 character 1638 @version 1.09i
- Cufon font SwitzerlandCondensed: bold is shifted up compared to normal
- Cufon for retina display
- Vertical text support
- Cufon vanishes my header after rendering on Safari
- Cufon make my website disappear in firefox
- Cufon google translate problem
- Cufon Not Working? HOT 5
- Cufon different line-hight IOS vs PC
- If descent is zero, cufon returns empty string instead of zero for descent. HOT 1
- FontForge version on Cufon website HOT 4
- Please bring back development HOT 1
- Cufon not working properly in latest Google Chrome HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cufon.