Draws subtitles from an .SRT (or plain text) into a formatted styled paragraph with fading opacity and more.
OTHER License
Ready to use customizable .SRT
text subtitle (and plain text) player for openFrameworks
.
.SRT
file browser for exploring the dialogs.Text Mode
for importing .txt
. files. Split file in blocks then used as slides.FontStash
render.Paragraph Styles
.rectangle container
.settings are persistent
.Fade In/Out
for transparency.Transport time player
with four modes:
SRT
times and durations.SRT
times. Ideal for Text
mode.SRT
file. Just pass the text slides manually.Presets Engine
for all the settings.Requires this FORK of ofxWhisper from @roymacdonald.
#include "ofxSurfingTextSubtitle.h"
ofxSurfingTextSubtitle subs;
void ofApp::setup()
{
//subs.setup("Alphaville.srt"); // Optional
}
void ofApp::draw()
{
subs.draw();
subs.drawGui();
}
srtparser.h
. Taken from https://github.com/Jonathhhan/ofEmscriptenExamples. Thanks to @Jonathhhan. Originally by @saurabhshri./libs
. Optional to use only when using ofxGui as GUI. (Can be removed when using ofxSurfingImGui.)MIT LICENSE