mhe1239 님의 블로그

  • 홈
  • 태그
  • 방명록

2024/12/26 1

python)pygame, font(+한글 띄우기) 텍스트 띄우기(1)

pygame에서 font는 텍스트를 화면에 렌더링하는 데 사용되는 기능이다.기본적인 순서는 pygame.font.Font로 글꼴 및 크기를 설정하고 render()로 텍스트를 로드, blit로 화면에 표시한다.1) pygame.font.Font VS pygame.font.SysFont  pygame.font.Fontpygame.font.SysFont사용 방법pygame.font.Font(font,size)pygame.font.SysFont font,size,bold=False,italic=False)폰트 사용 방식폰트 파일 경로에서 가져옴시스템 폰트 사용(system font)굵기 및 기울이기불가능가능함수의 인수2개(font,size)2~4개(font,size,bold,italic)내가 다운로드한 폰트를..

python study/import pygame 2024.12.26
이전
1
다음
더보기
프로필사진

mhe1239 님의 블로그

주로 C/C++, python과 관련된 글을 공유합니다.

  • 분류 전체보기 (28)
    • BOJ (4)
      • string (2)
      • data structure (1)
      • math && implementation (1)
    • C study (3)
    • C++ study (0)
    • python study (10)
      • import pygame (9)
    • coding Tips & Tricks (7)
      • C\C++ (3)
      • python (1)
    • coding etc (1)
    • Tips & Tricks (1)
    • etc (1)

Tag

c언어, 파이썬, 오블완, 백준, 티스토리챌린지,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2024/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • solved.ac

티스토리툴바