font size

This commit is contained in:
j 2017-08-29 19:29:35 +02:00
parent 6e6469f39c
commit 856129d471
2 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,9 @@ cd ~/playout
mkdir ~/.config/autostart mkdir ~/.config/autostart
cp unclutter.desktop player.desktop ~/.config/autostart cp unclutter.desktop player.desktop ~/.config/autostart
mkdir ~/.fonts
cp *.ttf ~/.fonts/
# fixme, disable updates # fixme, disable updates
sed -i "s/Update-Package-Lists \"1\"/Update-Package-Lists \"0\"/g" /etc/apt/apt.conf.d/10periodic sed -i "s/Update-Package-Lists \"1\"/Update-Package-Lists \"0\"/g" /etc/apt/apt.conf.d/10periodic

View file

@ -17,7 +17,10 @@ def my_log(loglevel, component, message):
base = os.path.dirname(os.path.abspath(__file__)) base = os.path.dirname(os.path.abspath(__file__))
os.chdir(base) os.chdir(base)
player = mpv.MPV(log_handler=my_log, input_default_bindings=True, input_vo_keyboard=True) player = mpv.MPV(
log_handler=my_log, input_default_bindings=True,
input_vo_keyboard=True, sub_text_font_size=28, sub_text_font='Menlo'
)
#player.observe_property('time-pos', lambda pos: print('Now playing at {:.2f}s'.format(pos))) #player.observe_property('time-pos', lambda pos: print('Now playing at {:.2f}s'.format(pos)))
player.fullscreen = True player.fullscreen = True
player.loop = 'inf' player.loop = 'inf'