|
Title:
|
Unicode tip #1 - don't forget the font
|
Author:
|
Bob Swart |
Posted:
|
11/22/2008 11:58:32 AM
(GMT+1)
|
Content:
|
Delphi 2009 adds Unicode support to our developer toolbox, which enables us to express written languages but also Klingon or musical notes. However, not all fonts support the special Unicode characters (something to keep in mind when migrating legacy applications from ANSI to Unicode Strings). When a Unicode character is not supported by the font, you'll get a square. Note that this is different from a ? that you get when converting a Unicode character to an ANSI character (in which case information has been lost). A square does not indicate lost information, but merely a missing font glyph for the specified code point.
Klingon (U+F8D0 - U+F8FF) is supported by the shareware Code2000 font, whereas musical notes like the G Clef (𝄞) are supported by the freeware Code2001 font for example.
This tip is the first in a series of Unicode tips taken from my Delphi 2009 Development Essentials book available shortly on Lulu.com.
|
Back |
|