Having trouble getting --freetype-font to work
Posted: 19 Jul 2024 07:45
Hello all, I'm running VLC 3.0.21 (Vetinari) on a Raspberry Pi 3B+ on the latest version of Raspberry Pi OS Lite (ie, no desktop environment, just straight from the command line.) I'm trying to change the font VLC uses to display the on-screen video title whenever a video starts playing, and while I'm able to set the colour, position, background opacity, and various other things using the --freetype-* options, the one option that refuses to do anything is --freetype-font.
I've tried different otf and ttf fonts to rule out a broken font file, I've tried setting it in vlcrc as well as passing it as an argument, I've triple and quadruple checked paths (both relative and absolute) to make sure I'm definitely pointing to the correct font file, I've made sure all file permissions are set properly, but absolutely nothing I do can convince VLC to use a different font, it always uses its default.
Here's my vlcrc:
And here's the output from vlc -vvv:
https://pastebin.com/raw/k9Y05w4F
Does anyone know what I'm doing wrong here? Cheers.
I've tried different otf and ttf fonts to rule out a broken font file, I've tried setting it in vlcrc as well as passing it as an argument, I've triple and quadruple checked paths (both relative and absolute) to make sure I'm definitely pointing to the correct font file, I've made sure all file permissions are set properly, but absolutely nothing I do can convince VLC to use a different font, it always uses its default.
Here's my vlcrc:
Code: Select all
[main]
video-title-position=9
[freetype]
freetype-font=/home/[redacted]/fonts/hermit/hermitregular.ttf
freetype-monofont=/home/[redacted]/fonts/hermit/hermitregular.ttf
freetype-background-color=0
freetype-background-opacity=128
freetype-outline-thickness=0
freetype-fontsize=12
freetype-shadow-distance=0
And here's the output from vlc -vvv:
https://pastebin.com/raw/k9Y05w4F
Does anyone know what I'm doing wrong here? Cheers.