Pygame -Schriftart nicht unterstützt?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Pygame -Schriftart nicht unterstützt?

by Anonymous » 03 Apr 2025, 02:39

Mein Code funktioniert nicht. Ich glaube, es liegt nur daran, dass ich die Schrift als "keine" angegeben habe. Der einzige Grund, warum ich das tat, war, dass es schien, dass keine andere Schriftart unterstützt wurde! Nicht einmal Arial oder Monospace.
Hier ist der Code: < /p>

Code: Select all

import pygame
pygame.init()
white = (34,34,34)
black=(0,0,0)
red=(255,0,0)
led=45
pik=105
silver=(110,108,108)
yellow=(193,206,104)
yellow2=(213,230,100)
display_height=600
display_width=800
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('Slither')

def text_objects(text, font):
textSurface = font.render(text, True, black)

def message_display(text):
largeText = pygame.font.Font(==>None

Top