Add-Remove Font Resource 添加和删除字体
device-level font resource 装置级字型资源
system-level font resource 系统层字型资源
level font resource 装置级字型资源
They first read in the resource file the name and size of the font to be used (lines 64 through 70).
这些代码首先从资源文件中读出要使用的字体的名称和大小(第64行到第70行)。
Then they overwrite the getter methods of DefaultMetalTheme so that the font and colors defined in the external resource file are used.
然后重写DefaultMetalTheme的getter方法,以便使用在外部资源文件中定义的颜色和字体。
In the same way, you can create a high-contrast look and feel with white text on black background and normal font size just by providing another resource file as shown in Listing 4.
通过与之相同的方法,您可以创建一个带有白文本、黑背景、普通大小字体的高对比度的look and feel,您只需提供如清单4所示的另一个资源文件。
应用推荐