Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Individual words with multiple styles splitting during word wrap #231

Open
brayne opened this Issue · 0 comments

1 participant

@brayne

I am sorry if this has already been covered, but I could not see it there.

In the very rare instance of a single word having more than one style tag applied, cufon treats this as two words, and will split them during word wrap. For example, if you were to style the word "hello" with the first three letters as <strong> and the last two letters as <em>, like this:

<strong>hel</strong><em>lo</em>

Cufon will treat this as two words, and will split in the middle during word wrap. I have an example here:

http://www.branchus.com.au/cufontest

If you keep reducing the size of the window until the word wrap happens at the word "single", it will split the word in two (tested in Chrome, FF and Safari).

Obviously this would be a very rare occurrence, but it is incorrect nonetheless. As there is no space in between, they should be interpreted as a single, unbreakable word.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.