pygame.font not working and not showing any errors also
<p>Everything is working fine except that font thing, i don't know why it's happening and it's not even showing any error. And not displaying the Text on screen.</p>

<pre><code># import library here
import pygame
import time
import sys

# display init
display_width = 800
display_height = 600

# game initialization done
pygame.init()

# game display changed
gameDisplay = pygame.display.set_mode((display_width, display_height))

# init font object with font size 25 
font = pygame.font.SysFont(None, 25)

def message_to_display(msg, color):
    screen_text = font.render(msg, True, color)
    gameDisplay.blit(screen_text, [10, 10])

message_to_display("You Lose", red)
time.sleep(3)

pygame.quit()
# you can signoff now, everything looks good!
quit()
</code></pre>