Enabling Asian Line Breaking (Windows Embedded CE 6.0)
1/6/2010
When operating system developers include the MGFE component in a run-time image, the DrawText function applies Asian line breaking rules to the range of Unicode Asian characters. Windows Embedded CE provides default rules for Kinsoku, double–byte character set (DBCS), half–width Katakana, and ASCII English characters. A string will not break on one of these characters.
In effect, Windows Embedded CE uses the following registry settings to control line breaking:
[HKEY_LOCAL_MACHINE\SYSTEM\GDI]
DONTBEGIN=,.?!)]}>\x3001\x3002\xff0c\xff0e\xff64\xff61\xff1f\xff01\xff09\xff3d\xff5d\xff1e\x309c\xff9f\x309b\xff9e\x300d\xff63\x3015\x300b\x300f\x3011\x30fc\xff70DONTEND=([{<\xff08\xff3b\xff5b\xff1c\x300c\xff62\x3014\x300a\x300e\x3010EDBCS=\x0001\x007f\xff61\xff9f
If you want to use a different type of line breaking, you can override the settings in the Project.reg registry file. The following examples show how to modify line breaking.
[HKEY_LOCAL_MACHINE\SYSTEM\GDI]
DONTBEGIN=<one or more characters>
DONTEND=<one or more characters>
EDBCS=\<start character>\<end character>
Replace the one or more characters variable with a list of one or more characters that should not be placed at the beginning of a line of text, for the DONTBEGIN entry, or at the end of a line of text, for the DONTEND entry. To specify the DBCS characters, use the format shown in the first example in this section.
You must express the start character and end character values in hexadecimal. These values specify the start and end characters of a continuous range of Unicode characters. Line breaking will not occur for any character within the specified range. You can specify one or more ranges of values.