[vlc-devel] text_style_t and font style

Kaarlo Räihä kaarlo.raiha at gmail.com
Thu Mar 22 07:33:41 CET 2012


22. maaliskuuta 2012 8.17 Peter Tap <ptrtap at yahoo.com> kirjoitti:

> Ok. I think I found the problem.
>
> When marquee text has to be displayed, the text renderer in VLC picks up
> whatever font that was previously used. So, if you "show media title on
> video start" checked, the media file name gets displayed first. Next, the
> marquee filter uses the same font to display the marquee text.
>
> Alternatively, you can run the following command and see that the marquee
> text is working:
>
> vlc --sub-filter=marq --video-title-show mymedia1.mp4
>
> If you uncheck "show media title on video start," or run the following
> command, you will see that marquee text NEVER gets displayed:
>
> vlc --sub-filter=marq --no-video-title-show mymedia1.mp4
>
> Looks like there are two bugs in VLC:
>
> 1. VLC must not be dependent on video-title-show to display the marquee
> text.
> 2. Video-title-show picks up a different font based on the movie being
> played. This is a bit puzzling.
>

You should be able to override the font via --freetype-font assuming that
you use freetype font renderer.


>
> In my case, we cannot have video-title-show checked. I would appreciate it
> if anyone can suggest a workaround to get the marquee work.
>
> Thank you in advance for your help.
>
> Regards,
> Peter
>
>
>    ------------------------------
> *From:* Peter Tap <ptrtap at yahoo.com>
> *To:* Mailing list for VLC media player developers <vlc-devel at videolan.org>
>
> *Sent:* Wednesday, March 21, 2012 6:05 PM
> *Subject:* [vlc-devel] text_style_t and font style
>
> Folks,
>
> The constructor for text_style_t initializes the font name to NULL. I am
> wondering how VLC determines the actual font to use. I see that the marquee
> filter is picking up two different fonts for two different movies. In the
> code, psz_fontname field of the text style remains NULL.
>
> Thank you in advance for your help.
>
> Regards,
> Peter
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120322/809b0284/attachment.html>


More information about the vlc-devel mailing list