Answers for "pygame font list"

8

pygame fonts

# On this version of windows 10 the pygame fonts available are listed below

arial
arialblack
bahnschrift
calibri
cambriacambriamath
cambria
candara
comicsansms
consolas
constantia
corbel
couriernew
ebrima
franklingothicmedium
gabriola
gadugi
georgia
impact
inkfree
javanesetext
leelawadeeui
leelawadeeuisemilight
lucidaconsole
lucidasans
malgungothic
malgungothicsemilight
microsofthimalaya
microsoftjhengheimicrosoftjhengheiui
microsoftjhengheimicrosoftjhengheiuibold
microsoftjhengheimicrosoftjhengheiuilight
microsoftnewtailue
microsoftphagspa
microsoftsansserif
microsofttaile
microsoftyaheimicrosoftyaheiui
microsoftyaheimicrosoftyaheiuibold
microsoftyaheimicrosoftyaheiuilight
microsoftyibaiti
mingliuextbpmingliuextbmingliuhkscsextb
mongolianbaiti
msgothicmsuigothicmspgothic
mvboli
myanmartext
nirmalaui
nirmalauisemilight
palatinolinotype
segoemdl2assets
segoeprint
segoescript
segoeui
segoeuiblack
segoeuiemoji
segoeuihistoric
segoeuisemibold
segoeuisemilight
segoeuisymbol
simsunnsimsun
simsunextb
sitkasmallsitkatextsitkasubheadingsitkaheadingsitkadisplaysitkabanner
sitkasmallsitkatextboldsitkasubheadingboldsitkaheadingboldsitkadisplayboldsitkabannerbold
sitkasmallsitkatextbolditalicsitkasubheadingbolditalicsitkaheadingbolditalicsitkadisplaybolditalicsitkabannerbolditalic
sitkasmallsitkatextitalicsitkasubheadingitalicsitkaheadingitalicsitkadisplayitalicsitkabanneritalic
sylfaen
symbol
tahoma
timesnewroman
trebuchetms
verdana
webdings
wingdings
yugothicyugothicuisemiboldyugothicuibold
yugothicyugothicuilight
yugothicmediumyugothicuiregular
yugothicregularyugothicuisemilight
holomdl2assets
bookantiqua
bookmanoldstyle
bookshelfsymbol7
century
dubai
dubaimedium
dubairegular
garamond
centurygothic
leelawadee
microsoftuighur
monotypecorsiva
extra
msreferencesansserif
msreferencespecialty
wingdings2
wingdings3
Posted by: Guest on February-21-2021
7

pygame render text

"""system font"""
font = pygame.font.SysFont("Segoe UI", 35)

"""font from .ttf file"""
font = pygame.font.Font("path/to/font.ttf", 35)

textsurface = font.render("text", False, color)  # "text", antialias, color
surface.blit(textsurface, (x, y))
Posted by: Guest on September-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language