Permalink
Browse files

change default location for font on ubuntu

  • Loading branch information...
sdpython committed Jan 8, 2018
1 parent ebdd14f commit 92be1b24cc780d68303587bccaaeb073854a4459
Showing with 3 additions and 1 deletion.
  1. +2 −0 requirements_conda.txt
  2. +1 −1 src/code_beatrix/faq/faq_video.py
View
@@ -2,6 +2,8 @@ basemap
chainer
bokeh
Cython
fontconfig
freetype
ipython
jupyter
jupyter_client
@@ -632,7 +632,7 @@ def video_text(text, font=None, fontsize=32, size=None,
if sys.platform.startswith('win'):
font = "arial.ttf"
else:
font = "fnt/arial.ttf"
font = "/usr/share/fonts/truetype/freefont/FreeSerif.ttf"
try:
obj = ImageFont.truetype(font=font, size=fontsize)
except OSError as e:

0 comments on commit 92be1b2

Please sign in to comment.