阅读:1887回复:2
如何更改系统的字体大小?
现在想将系统中的字体改大,哪位兄弟知道怎么改?
还有如果想更改系统中的颜色,比如将对话框的标题拦改成其他的颜色,要从哪里着手?大家给点思路? 先谢谢各位了~~ |
|
沙发#
发布于:2007-11-19 23:50
Customizing Fonts Replacing Fonts Replacing Windows CE Default Fonts
Customizing Fonts You can change the appearance of your operating system (OS) by customizing fonts. Windows CE allows you to replace fonts, specify a directory from which the OS should load fonts, enable ClearType, enable antialiased fonts, enable linked fonts, change the font size for the Help system, enable end-user-defined-characters (EUDC), and enable line breaking for non-Roman fonts, such as many Asian-language characters. For details, see the following topics: Replacing Fonts For some platforms or applications, you may need to be able to replace the default Windows CE fonts with other fonts, including custom fonts. You can modify the Windows CE registry to replace default fonts, to replace fonts used on a platform, and to replace raster fonts with TrueType fonts. For details, see the following topics: Replacing Windows CE Default Fonts Windows CE uses a default set of fonts that exist in ROM. You can replace these fonts by modifying the Windows CE registry. The replacement font must exist in the \Windows directory on the target device. The following table shows the locations of the fonts that you can replace through the Windows CE registry. Font location Registry key System HKEY_LOCAL_MACHINE\SYSTEM\GDI\SysFnt Menu bar HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\BarFnt Pop-up menu HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\PopFnt Out of Memorywindow HKEY_LOCAL_MACHINE\SYSTEM\GWE\OOMFnt To change a font in the Windows CE registry 1. Modify your Project.reg project registry file by adding the registry keys listed in the preceding table for the fonts you want to replace. 2. Under each registry key, add the following variables and values: "Nm"=font-name "Ht"=DWORD:height "It"=DWORD:italics-flag "Wt"=DWORD:weight "CS"=DWORD:character-set The following table describes each of these variables. Variable Description font-name Font name, not including the extension. For example, to load the Arial font, Arial.ttf, use the following value for the font-name variable: "Nm"=Arial height Font height, in pixels. italics-flag Set to 1 for italics; 0 for no italics. weight Font weight, which can be one of the FW_* values. character-set Defines the character set, which can be one of the *_CHARSET values. 3. Rebuild your image. Replacing Platform Fonts There are two ways to replace platform fonts: font name aliasing and font fixing. If you want to replace a font used on a platform, but still maintain compatibility with applications that use the existing font, use font name aliasing. This technique uses the HKEY_LOCAL_MACHINE\System\Gdi\FontAlias registry key to turn a request for a specified font name into a request for a font with another name. The change affects all sizes and versions of a font. The following example shows how to change the font from Tahoma to a custom font called MyDisplayFont. HKEY_LOCAL_MAHINE\SYSTEM\GDI\FontAlias "Tahoma"="MyDisplayFont" Font fixing is similar to font name aliasing, but it applies only to a specific point size of the font. It also applies only to applications with a version number that is less than or equal to the current setting of the version registry key. This registry key specifies which version of an application is affected by font fixing. Font fixing is commonly used for a device that previously used raster fonts but now uses TrueType fonts. The following example shows how to replace 13-point MS Sans Serif, the raster font, with 9-point Tahoma, the TrueType font. HKEY_LOCAL_MACHINE\SYSTEM\GDI\V1\FontAlias "version"=DWORD:2000c "MS Sans Serif:-13"="Tahoma:-9" Font Linking Registry Settings The following registry key links a base font to a link font. In this code example, the platform developer selected MSGothic, a Japanese-specific font, when building the base platform. When searching for a character, the base font is searched first followed by the linked font. This enables you to support a larger variety of characters in a font without switching. For more information about these settings, see Customizing Fonts. For a more information about these settings, see Enabling Linked Fonts. IF LOCALE=0409 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\SystemLink] "Arial"="\\Windows\\msgothic.ttc,MS PGothic" "Microsoft Logo"="\\Windows\\msgothic.ttc,MS PGothic" "Times New Roman"="\\Windows\\msgothic.ttc,MS Gothic" "Tahoma"="\\Windows\\msgothic.ttc,MS PGothic" "Courier New"="\\Windows\\msgothic.ttc,MS PGothic" "Symbol"="\\Windows\\msgothic.ttc,MS Gothic" "Kino MT"=\\Windows\\msgothic.ttc,MS Gothic The following registry key describes the characters to skip in the base font in favor of the linked font. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\SkipTable] "Tahoma"="005c,00a5,007e,0391-03c9,2026,2116,221a,25a0-25ff" The following registry key sets the end-user-defined character (EUDC) font for the system. [HKEY_CURRENT_USER\EUDC] "SystemDefaultEUDCFont"="\\Windows\\eudc.tte" ENDIF LOCALE=0409 |
|
|
板凳#
发布于:2008-01-15 18:28
好东西, 顶一下
|
|
|