Accented spanish characters and text-transform: capitalize #252

metallist opened this Issue Aug 15, 2012 · 1 comment


None yet

2 participants


Hi guys!
Had an issue today with Myriad Pro Light typeface and using spanish characters with acute accent (á, í, ú etc.). When cufon transforms the text of an element that has CSS rule text-transform: capitalize applied, the lowercase accented characters become the same uppercase accented characters.
I just removed the given CSS rule and it worked fine for me but you might want to take a look at this 'cause this behavior was rather unexpected from cufon.


hey, i know its an old post, but i found whats going wrong with this.

search for /\b./g inside capitalize function. it have to be replaced with /(?:^|\s)./g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment