Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
When operating system developers include the MGFE component in a run-time image, the DrawTextfunction 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:
Copy Code | |
---|---|
[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.
Copy Code | |
---|---|
[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 charactersvariable with a list of one or more characters that should not be placed at the beginning of a line of text, for the DONTBEGINentry, or at the end of a line of text, for the DONTENDentry. To specify the DBCS characters, use the format shown in the first example in this section.
You must express the start characterand end charactervalues 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.