import java.awt.GraphicsEnvironment;
public class Test {
public static void main(String[] args) throws Exception {
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontName = environment.getAvailableFontFamilyNames();
for (int i = 0; i < fontName.length; i++) {
System.out.println(fontName[i]);
}
}
}
0.Agency FB
1.Algerian
2.Arial
3.Arial Black
4.Arial Narrow
5.Arial Rounded MT Bold
6.Arial Unicode MS
7.Bahnschrift
8.Baskerville Old Face
9.Bauhaus 93
10.Bell MT
11.Berlin Sans FB
12.Berlin Sans FB Demi
13.Bernard MT Condensed
14.Blackadder ITC
15.Bodoni MT
16.Bodoni MT Black
17.Bodoni MT Condensed
18.Bodoni MT Poster Compressed
19.Book Antiqua
20.Bookman Old Style
21.Bookshelf Symbol 7
22.Bradley Hand ITC
23.Britannic Bold
24.Broadway
25.Brush Script MT
26.Calibri
27.Calibri Light
28.Californian FB
29.Calisto MT
30.Cambria
31.Cambria Math
32.Candara
33.Candara Light
34.Castellar
35.Centaur
36.Century
37.Century Gothic
38.Century Schoolbook
39.Chiller
40.Colonna MT
41.Comic Sans MS
42.Consolas
43.Constantia
44.Cooper Black
45.Copperplate Gothic Bold
46.Copperplate Gothic Light
47.Corbel
48.Corbel Light
49.Courier New
50.Curlz MT
51.DejaVu Sans Mono
52.Dialog
53.DialogInput
54.Ebrima
55.Edwardian Script ITC
56.Elephant
57.Engravers MT
58.Eras Bold ITC
59.Eras Demi ITC
60.Eras Light ITC
61.Eras Medium ITC
62.Felix Titling
63.Footlight MT Light
64.Forte
65.Franklin Gothic Book
66.Franklin Gothic Demi
67.Franklin Gothic Demi Cond
68.Franklin Gothic Heavy
69.Franklin Gothic Medium
70.Franklin Gothic Medium Cond
71.Freestyle Script
72.French Script MT
73.Gabriola
74.Gadugi
75.Garamond
76.Georgia
77.Gigi
78.Gill Sans MT
79.Gill Sans MT Condensed
80.Gill Sans MT Ext Condensed Bold
81.Gill Sans Ultra Bold
82.Gill Sans Ultra Bold Condensed
83.Gloucester MT Extra Condensed
84.Goudy Old Style
85.Goudy Stout
86.Haettenschweiler
87.Harlow Solid Italic
88.Harrington
89.High Tower Text
90.HoloLens MDL2 Assets
91.Impact
92.Imprint MT Shadow
93.Informal Roman
94.Ink Free
95.Javanese Text
96.Jokerman
97.Juice ITC
98.Kristen ITC
99.Kunstler Script
100.Leelawadee UI
101.Leelawadee UI Semilight
102.Lucida Bright
103.Lucida Calligraphy
104.Lucida Console
105.Lucida Fax
106.Lucida Handwriting
107.Lucida Sans
108.Lucida Sans Typewriter
109.Lucida Sans Unicode
110.Magneto
111.Maiandra GD
112.Malgun Gothic
113.Malgun Gothic Semilight
114.Marlett
115.Matura MT Script Capitals
116.Meiryo
117.Meiryo UI
118.Microsoft Himalaya
119.Microsoft JhengHei
120.Microsoft JhengHei Light
121.Microsoft JhengHei UI
122.Microsoft JhengHei UI Light
123.Microsoft New Tai Lue
124.Microsoft PhagsPa
125.Microsoft Sans Serif
126.Microsoft Tai Le
127.Microsoft YaHei UI
128.Microsoft YaHei UI Light
129.Microsoft Yi Baiti
130.MingLiU-ExtB
131.MingLiU_HKSCS-ExtB
132.Mistral
133.Modern No. 20
134.Mongolian Baiti
135.Monospaced
136.Monotype Corsiva
137.MS Gothic
138.MS Outlook
139.MS PGothic
140.MS Reference Sans Serif
141.MS Reference Specialty
142.MS UI Gothic
143.MT Extra
144.MV Boli
145.Myanmar Text
146.Niagara Engraved
147.Niagara Solid
148.Nirmala UI
149.Nirmala UI Semilight
150.OCR A Extended
151.Old English Text MT
152.Onyx
153.Palace Script MT
154.Palatino Linotype
155.Papyrus
156.Parchment
157.Perpetua
158.Perpetua Titling MT
159.Playbill
160.PMingLiU-ExtB
161.Poor Richard
162.Pristina
163.Rage Italic
164.Ravie
165.Rockwell
166.Rockwell Condensed
167.Rockwell Extra Bold
168.SansSerif
169.Script MT Bold
170.Segoe MDL2 Assets
171.Segoe Print
172.Segoe Script
173.Segoe UI
174.Segoe UI Black
175.Segoe UI Emoji
176.Segoe UI Historic
177.Segoe UI Light
178.Segoe UI Semibold
179.Segoe UI Semilight
180.Segoe UI Symbol
181.Serif
182.Showcard Gothic
183.SimSun-ExtB
184.Sitka Banner
185.Sitka Display
186.Sitka Heading
187.Sitka Small
188.Sitka Subheading
189.Sitka Text
190.Snap ITC
191.Stencil
192.Sylfaen
193.Symbol
194.Tahoma
195.TeamViewer15
196.Tempus Sans ITC
197.Times New Roman
198.Trebuchet MS
199.Tw Cen MT
200.Tw Cen MT Condensed
201.Tw Cen MT Condensed Extra Bold
202.Verdana
203.Viner Hand ITC
204.Vivaldi
205.Vladimir Script
206.Webdings
207.Wide Latin
208.Wingdings
209.Wingdings 2
210.Wingdings 3
211.Yu Gothic
212.Yu Gothic Light
213.Yu Gothic Medium
214.Yu Gothic UI
215.Yu Gothic UI Light
216.Yu Gothic UI Semibold
217.Yu Gothic UI Semilight
218.仿宋
219.华文中宋
220.华文仿宋
221.华文宋体
222.华文彩云
223.华文新魏
224.华文楷体
225.华文琥珀
226.华文细黑
227.华文行楷
228.华文隶书
229.宋体
230.幼圆
231.微软雅黑
232.微软雅黑 Light
233.新宋体
234.方正姚体
235.方正舒体
236.楷体
237.等线
238.等线 Light
239.隶书
240.黑体