Hi,
Fantastic work! Just one small problem...
I'd like to suggest a small code change to make Cufon work with
screenreaders - at the moment I can't use it on any of my sites
because screenreaders ignore most of the replaced text (which is a
massive shame because otherwise it's near perfect!)
Currently the display:none on replaced text causes problems in Jaws -
only replaced text which includes links is read out, plus, depending
on the browser, <h1>s.
I've downloaded the source, made a couple of changes and created a
test suite - and the amended version seems to work fine in Jaws:
http://www.sonofswiss.co.uk/cufon-test/
http://www.sonofswiss.co.uk/cufon-test/amended.html
Changes are detailed below - but all I've done is replace the
display:none for replaced text with off-screen absolute positioning.
I've tested my amended page in IE6, IE7 (not IE8 yet), FF3, Safari 4b,
Chrome and Opera 9, and it seems OK (but you guys will know better
what issues to look out for!)
Could I ask that this is added into the codebase?
That way, I can start using this on sites safely, and I can start
recommending it to other people too :-)
---
Changes:
line 554:
'}.cufon-canvas .cufon-alt
{position:absolute;left:-999em;top:-999em;overflow:hidden;}' +
line 562:
'.cufon-canvas .cufon-alt
{display:inline;position:static;left:auto;top:auto;overflow:visible;}'
+
line 768:
'.cufon-vml .cufon-alt
{position:absolute;left:-999em;top:-999em;overflow:hidden;}' +
line 773:
'.cufon-vml .cufon-alt
{display:inline;position:static;left:auto;top:auto;overflow:visible;}'
+