📄 e651. listing all available font families.txt
字号:
A font family refers to a set of font faces with a related typographic design. For example, the font faces in the family Lucida Sans Typewriter might be Lucida Sans Typewriter Bold, and Lucida Sans Typewriter Regular. This example lists all available font family names.
Note: J2SE 1.4 only supports True Type fonts.
// Get all font family names
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String fontNames[] = ge.getAvailableFontFamilyNames();
// Iterate the font family names
for (int i=0; i<fontNames.length; i++) {
}
// Aria
// Comic Sans MS
// Verdana
// ...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -