[
http://dev.sourcefabric.org/browse/LS-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17976#action_17976
]
David Baelde commented on LS-568:
---------------------------------
I tried your code. It works, thanks!
However, I'm not sure gd should be the default for video.add_text(), requiring
users to explicitly ask for add_text.sdl() even when gd is not present. The gd
ocaml library is not packaged (also probably unmaintained) so it's harder to
install than ocamlsdl. I suggest keeping video.add_text() for the SDL add_text.
A possible solution is also to register video.add_text twice, one with each
implementation; it is fine if one masks the other.
In addition, there are drawbacks to using gd instead of SDL. The text isn't
antialiased. I also see some (* cannot do better than this for now *) in
video_text_gd.ml... It seems that you only render a narrow window, which makes
it pointless to scroll (here, it scrolls but the rendered text has pretty much
the same width as the full frame).
Finally, what do you mean by (* TODO: merge with video_text_sdl!!! *),
factorize some code? Doesn't seem too bad to me. Also, why is there still a
TODO for background color in both add_text implementations?
> Font support without SDL (for servers without X)
> ------------------------------------------------
>
> Key: LS-568
> URL: http://dev.sourcefabric.org/browse/LS-568
> Project: Liquidsoap
> Issue Type: New Feature
> Reporter: David Baelde
> Assignee: Samuel Mimram
> Priority: Major
>
> Our video.add_text() operator currently depends on SDLttf, which is not
> available on many installations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl