Fog Creek Software
Discussion Board




Single Line Up Arrow

On Windows 2000 if you start CharMap and select the "Symbol" font then try to "Select/Copy" the Single Line Up Arrow Glyph (0xAD), it doesn't do anything.  (At least on my system.)

If you then attempt to paste this into WordPad or a RichEdit Window, Nothing gets pasted.  If you try to use the keyboard and type "Alt + 0173" with the Symbol font selected, in Wordpad or a RichEdit Window, you sometimes get a strange glyph.

This seems to also be the case on Windows ME.  I haven't tried the other versions of Windows, but I was wondering if anyone knows why this is or how to correct?  Maybe I don't have the right fonts installed.  I am trying to get this working for my code, (i.e. I want to allow the user to display this glyph).

(Aren't the justification icons in WordPad upside-down?)

Smeagle
Saturday, January 03, 2004

Can anyone reproduce this problem on their machine?

Smeagle
Saturday, January 03, 2004

This same behaviour occurs in XP Pro.

Dennis Forbes
Saturday, January 03, 2004

"Single Line Up Arrow Glyph (0xAD)"

Character code 0xAD is only an up-arrow in the Symbol font. In every text font, it's the soft hyphen, indicating a user recommendation for hyphenation.

Word processors shouldn't show soft hyphens unless an option "Show control characters" or the like is checked (which WordPad does not have IIRC). I suppose that's what happened in your case.

Chris Nahr
Sunday, January 04, 2004

Shouldn't it display the up arrow glyph if the Symbol font is selected?  Or are you saying the word processor and rich edit window interpret it as a soft-hyphen?  If that's the case then why does "Alt+173" produce a different glyph?  The correct behavior with the Symbol Font selected should be to display the up arrow glyph.  Which is the behavior I'm trying to produce.

Smeagle
Sunday, January 04, 2004

I really have no idea why the Symbol font isn't copied correctly across the clipboard -- it's true, I could reproduce it on my Windows XP Pro system as well -- the soft hyphen thing is just the only possible explanation I could come up with.

Chris Nahr
Sunday, January 04, 2004

If you're talking about Charmap, it doesn't copy fonts onto the clipboard, only characters. It's your responsibility to make sure the font is appropriate in the destination application.

Brad Wilson (dotnetguy.techieswithcats.com)
Sunday, January 04, 2004

I believe Clipboard does retain the font of the character you copy, and I'm positive that the font in my application is set to Symbol, I'm actually using a Rich Edit Window.

Take WordPad for example.  Set the Font to Arial then copy a random Symbol Font character like the "Spade".  Now paste it into WordPad.  Works good.  Now copy the Up Arrow from Charmap and paste it into WordPad.  You will either get nothing or a strange glyph.

Kind of frustrating because it is the only character I have noticed that does not work.

Smeagle
Sunday, January 04, 2004

I guess the Rich Edit Window places the Rich Text into the clipboard, that's why it retains the font between copy/paste or maybe it's more complicated than that and I don't understand it.

Smeagle
Sunday, January 04, 2004

Everone is correct. What's copied is the character mapping, not the font. Typing ALT + 0173 especially won't contain any font information.

A Macro or copying it with font from Word to the clipboard would work much better.

www.MarkTAW.com
Monday, January 05, 2004

*  Recent Topics

*  Fog Creek Home