Page 1 of 1

libvlc 3.0.6: --freetype-font is not supprted anymore?

Posted: 15 Mar 2019 02:27
by roxx
Hi!

With libvlc 2.2.4 it was possible to pass a --freetype-font and --freetype-fontsize options to libvlc_new() to set a font family/size for subtitles. However in libvlc 3.0.6 it complains --freetype-font is an invalid option or missing parameter. Could you please advice how to set a font family/size in libvlc 3.x?

Thanks!

Re: libvlc 3.0.6: --freetype-font is not supprted anymore?

Posted: 15 Mar 2019 04:32
by InTheWings
freetype-font and freetype-monofont are still valid

You're not allowed to set up custom font size, but only relative size and that text scaling is now a global option
sub-text-scale 0..100

Also some subtitles do not allow modifying font size because the layout is enforced by the format. (closed captions, ttml, webvtt...)

Re: libvlc 3.0.6: --freetype-font is not supprted anymore?

Posted: 15 Mar 2019 04:37
by RĂ©mi Denis-Courmont
Passing options to libvlc_new() was never supported to begin with, so it cannot be "not supported anymore".

Regardless, this looks like the FreeType plugin is not included in your installation.