Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想获取给定字体的字体样式(粗体、斜体...)。
目前我正在使用 javafx.scene.text.Font.getFamilies() 在组合框中获取字体列表,现在我想获取每种字体的字体样式,就像记事本中的那样。
任何人都可以指导我如何获取这些字体样式的列表并使用它来设置名为 demo_text_area 的给定 TextArea 的属性。