pygame.font.init()
font_path = pygame.font.match_font('bitstreamverasans')
if not font_path:
pygame.font.get_default_font()
font = pygame.font.Font(font_path, 12)
print(font.metrics("My text string"))
print(font.get_linesize(), font.get_height())
pygame.font.quit()¶
pip install www.lfd.uci.edu/~gohlke/pythonlibs/PyICU‑2.6‑pp37‑pypy37_pp73‑win32.whl
WARNING: Requirement 'www.lfd.uci.edu/~gohlke/pythonlibs/PyICU‑2.6‑pp37‑pypy37_pp73‑win32.whl' looks like a filename, but the file does not exist
ERROR: PyICU‑2.6‑pp37‑pypy37_pp73‑win32.whl is not a valid wheel filename
. pip install D:\Загрузки\PyICU-2.6-cp39-cp39-win_amd64.whl
ERROR: PyICU-2.6-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32