Freigeben über


Enabling Asian Line Breaking (Windows CE 5.0)

Send Feedback

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 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 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\xff70"    "DONTEND"="([{<\xff08\xff3b\xff5b\xff1c\x300c\xff62\x3014\x300a\x300e\x3010"    "EDBCS"="\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.

See Also

DrawText | Creating End User Defined Characters

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.