Skip to content

Instantly share code, notes, and snippets.

@karaage0703
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karaage0703/afe0814e7f59a149e393 to your computer and use it in GitHub Desktop.
Save karaage0703/afe0814e7f59a149e393 to your computer and use it in GitHub Desktop.
display keion font on Nakayoshi camera
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import pygame
pygame.init()
size = (pygame.display.Info().current_w, pygame.display.Info().current_h)
print "Framebuffer size: %d x %d" % (size[0], size[1])
screen = pygame.display.set_mode(size, pygame.FULLSCREEN)
keifont = pygame.font.Font("keifont.ttf", 80)
while True:
title = keifont.render(u"なかよしデジカメ", True, (180,0,0))
screen.fill((0,230,0))
screen.blit(title, (20,150))
pygame.display.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment