11 lines
309 B
Python
11 lines
309 B
Python
'''
|
|
This is an example of custom subtitle fonts
|
|
'''
|
|
|
|
|
|
from pyvidplayer2 import Subtitles, Video
|
|
from pygame.font import Font
|
|
|
|
subtitles = Subtitles(r"resources\subs2.srt", font=Font(r"resources\font.ttf", 60), highlight=(255, 0, 0, 128), offset=500)
|
|
|
|
Video(r"resources\trailer2.mp4", subs=subtitles).preview() |