I am using the Glyphs class to display text in a Windows Phone 7 app. There is a ♥ character in the text, which is not getting displayed. The usual unicode empty rectangle for missing character is shown.
The same string is displayed correctly in a TextBlock, and if I debug and look at the UnicodeString property of the Glyphs object, then the ♥ symbol is displayed correctly in the watch window.
What could be the problem? I couldn’t find any information about the topic.
UPDATE: I am using the Segoe WP font (SegoeWP.ttf). I tried to copy paste this symbol into a Word document, and if I try to set its font to Segoe WP, it automatically changes back to Arial (the same happens with a lot of other fonts, like Tahoma, Verdana, etc). However, if I set its font to Segoe UI or Segoe Symbol, it switches to that, and the look of the heart symbol is also slightly changed.
Is it possible, that this symbol is missing from the Segoe WP font, but it is included in Segoe UI and Segoe Symbol? And if so, why does it work correctly in a TextBlock? Doesn’t it use Segoe WP on Windows Phone?
The Glyphs class states in its documentation that:
The documentation suggests that the suggests that a TextBlock should be used in situations where layout and substitution issues haven’t been specifically taken care of.