1# On this version of windows 10 the pygame fonts available are listed below
2
3arial
4arialblack
5bahnschrift
6calibri
7cambriacambriamath
8cambria
9candara
10comicsansms
11consolas
12constantia
13corbel
14couriernew
15ebrima
16franklingothicmedium
17gabriola
18gadugi
19georgia
20impact
21inkfree
22javanesetext
23leelawadeeui
24leelawadeeuisemilight
25lucidaconsole
26lucidasans
27malgungothic
28malgungothicsemilight
29microsofthimalaya
30microsoftjhengheimicrosoftjhengheiui
31microsoftjhengheimicrosoftjhengheiuibold
32microsoftjhengheimicrosoftjhengheiuilight
33microsoftnewtailue
34microsoftphagspa
35microsoftsansserif
36microsofttaile
37microsoftyaheimicrosoftyaheiui
38microsoftyaheimicrosoftyaheiuibold
39microsoftyaheimicrosoftyaheiuilight
40microsoftyibaiti
41mingliuextbpmingliuextbmingliuhkscsextb
42mongolianbaiti
43msgothicmsuigothicmspgothic
44mvboli
45myanmartext
46nirmalaui
47nirmalauisemilight
48palatinolinotype
49segoemdl2assets
50segoeprint
51segoescript
52segoeui
53segoeuiblack
54segoeuiemoji
55segoeuihistoric
56segoeuisemibold
57segoeuisemilight
58segoeuisymbol
59simsunnsimsun
60simsunextb
61sitkasmallsitkatextsitkasubheadingsitkaheadingsitkadisplaysitkabanner
62sitkasmallsitkatextboldsitkasubheadingboldsitkaheadingboldsitkadisplayboldsitkabannerbold
63sitkasmallsitkatextbolditalicsitkasubheadingbolditalicsitkaheadingbolditalicsitkadisplaybolditalicsitkabannerbolditalic
64sitkasmallsitkatextitalicsitkasubheadingitalicsitkaheadingitalicsitkadisplayitalicsitkabanneritalic
65sylfaen
66symbol
67tahoma
68timesnewroman
69trebuchetms
70verdana
71webdings
72wingdings
73yugothicyugothicuisemiboldyugothicuibold
74yugothicyugothicuilight
75yugothicmediumyugothicuiregular
76yugothicregularyugothicuisemilight
77holomdl2assets
78bookantiqua
79bookmanoldstyle
80bookshelfsymbol7
81century
82dubai
83dubaimedium
84dubairegular
85garamond
86centurygothic
87leelawadee
88microsoftuighur
89monotypecorsiva
90extra
91msreferencesansserif
92msreferencespecialty
93wingdings2
94wingdings3
1"""system font"""
2font = pygame.font.SysFont("Segoe UI", 35)
3
4"""font from .ttf file"""
5font = pygame.font.Font("path/to/font.ttf", 35)
6
7textsurface = font.render("text", False, color) # "text", antialias, color
8surface.blit(textsurface, (x, y))
1font = pygame.font.SysFont(None, 24)
2img = font.render('hello', True, BLUE)
3screen.blit(img, (20, 20))