MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / get_font

Function get_font

camera_calibration/collect_data_for_calibration.py:244–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 surface.blit(image_surface, (1000, 0))
243
244def get_font():
245 fonts = [x for x in pygame.font.get_fonts()]
246 default_font = 'ubuntumono'
247 font = default_font if default_font in fonts else fonts[0]
248 font = pygame.font.match_font(font)
249 return pygame.font.Font(font, 14)
250
251
252def create_main_actors(start_pose, waypoint):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected