diff --git a/Dockerfile b/Dockerfile index 7a3580c..8f79391 100755 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,8 @@ COPY ./core/PikaManager.py /root/PikaManager.py COPY ./core/processManager.py /root/processManager.py COPY ./core/logger.py /root/logger.py +COPY ./fonts/ /root/fonts/ + COPY ./translate-api/ /root/translate-api/ COPY ./vlibras-translate/ /root/vlibras-translate/ @@ -81,6 +83,7 @@ COPY ./unityVideo/ /root/unityVideo/ ENV VLIBRAS_VIDEO_CREATOR="/root/unityVideo/videoCreator.x86_64" ENV VLIBRAS_VIDEO_LIBRAS="/root/storage/libras" ENV VLIBRAS_VIDEO_SCREENS="/root/storage/frames" +ENV TEXT_FONTS="/root/fonts/FreeSans.ttf" #Translator environment variables ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" diff --git a/core/renderer.py b/core/renderer.py index 326320b..ac254df 100755 --- a/core/renderer.py +++ b/core/renderer.py @@ -189,7 +189,7 @@ def run(ch, method, properties, body): # Post processor functions def watermark(input_video, output_video, text): - fontfile = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" + fontfile = os.getenv("TEXT_FONTS") filter_graph = ','.join( [ diff --git a/fonts/FreeSans.ttf b/fonts/FreeSans.ttf new file mode 100644 index 0000000..4c2f69b Binary files /dev/null and b/fonts/FreeSans.ttf differ -- libgit2 0.21.2