Open pcwalton opened 9 years ago
What’s the scope of this? In a standalone media player, "subtitle support" might involve:
The first item should definitely be part of rust-media, but in the context of Servo everything else can (and should) be achieved by having the text be rendered as if it was in an HTML element. So all that logic should not be duplicated in rust-media. However this may not be idea for non-Servo users.
I've been thinking that rust-media can accept features that are outside the scope of Servo, but they go behind Cargo features so that we can compile them out for Servo.
That said, line breaking and text layout may want to be a separate crate entirely.
Something like Pango? Yes, that would probably be useful to the Rust ecosystem at large. But I suggest we consider out of scope for rust-media at first, and reconsider if/when someone asks for it. A non-Servo user might happen to be using a UI toolkit that already does text rendering.
Sounds good to me.
Subtitles are currently not supported, but they should be.