Skip to main content
Participant
January 22, 2009
Answered

non-breaking hyphen not displayed correctly

  • January 22, 2009
  • 5 replies
  • 6983 views
The non-breaking hyphen (\u2011, &#8209) is not displayed correctly - the wrong glyph is shown.

To reproduce, do the following:
1. Start the TLF demo editor http://labs.adobe.com/technologies/textlayout/demos/
2. Import the markup below

Results:
- Line wrapping is correct: no line break at the hyphen
- Times New Roman on Windows does have the glyph defined - it should look like an ordinary hyphen.

This was seen in Build 3291.

Cheers
David


Markup:
<?xml version="1.0" encoding="utf-8"?>
<flow:TextFlow whiteSpaceCollapse="preserve" xmlns:flow=" http://ns.adobe.com/textLayout/2008"><flow:p marginRight="5"><flow:span fontSize="60">
2011 non-breaking hyphen Macro‑media
</flow:span></flow:p></flow:TextFlow>
This topic has been closed for replies.
Correct answer david128128
Hi Chris,

you're right, Times New Roman does not contain the glyph. I was seeing 2013 whlie I type 2011 -- my mistake, sorry.

However, it's a pity non of the OTFs implement this glyph (also Myriad Pro doesn't, for instance). Open Office 3 seems to replace it by a hypen (which is greyed), and InDesign CS4 also seems to replace the character and does no word-wrap at this position.

Of course it would be very convenient if Flash could handle it the same way..

Btw, character map is the same as my "chart table application", at least it's my translation from the German "Zeichentabelle". :-)

So, sorry again for the confusion...

david

5 replies

Participant
July 20, 2009

I was going through the same problem. Thanks for sharing and helping out.

Cheers,

Adam@pheromones.com

Participating Frequently
January 30, 2009
Thanks for the clarification, David.

I think the general request of "glyph substitution" within a font in cases like this is a good one. Many Windows applications do not do any kind of substitution whatsoever (Notepad is one example), but as you point out, Word and InDesign do use the hyphen glyph when a non-breaking hyphen is undefined (and presumably they have a table of acceptable substitutions, not just this one). I think this is a reasonable feature request either for TLF or the underlying flash.text.engine that powers it. I can't promise anything, but I'll take this request back to the team.

Thanks!
-Chris
Known Participant
December 29, 2009

FYI: I was just testing the use of the nonbreaking hyphens and it turns out nonbreaking hyphens are showing correct now in the beta 10.1 player.

Tested with debug player, version: WIN 10,1,51,6

- Benny

david128128Correct answer
Participant
January 28, 2009
Hi Chris,

you're right, Times New Roman does not contain the glyph. I was seeing 2013 whlie I type 2011 -- my mistake, sorry.

However, it's a pity non of the OTFs implement this glyph (also Myriad Pro doesn't, for instance). Open Office 3 seems to replace it by a hypen (which is greyed), and InDesign CS4 also seems to replace the character and does no word-wrap at this position.

Of course it would be very convenient if Flash could handle it the same way..

Btw, character map is the same as my "chart table application", at least it's my translation from the German "Zeichentabelle". :-)

So, sorry again for the confusion...

david
Participating Frequently
January 26, 2009
Strange, my copy of Times New Roman does not contain the glyph. I don't have the chart table application, but I looked in Character Map, and there's nothing between U+200F and U+2013 in Times New Roman. I'm on Windows XP Service Pack 2. I wonder if some apps are using font substitution to find that glyph in another font, or if there is more than one version of Times New Roman?
Participating Frequently
January 24, 2009
Hi David -

When I paste your markup into Notepad, I see the same box for the hyphen that I see when viewing it in the TLF demo editor. Are you saying that you see the hyphen display in other Windows apps but not TLF?

Thanks,
-Chris
Participant
January 26, 2009
Hi Chris,

yeah, that's it exactly. When I paste it in word, I see the dash. E.g. try it in Times New Roman. This font contains the glyph (enter 2011 in the Windows chart table application).

David