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

This forum is about all development around libVLC.
roxx
Blank Cone
Blank Cone
Posts: 17
Joined: 26 Aug 2014 17:30

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

Postby roxx » 15 Mar 2019 02:27

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!

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

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

Postby InTheWings » 15 Mar 2019 04:32

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...)
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 15 Mar 2019 04:37

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests