My question is, can I set the font-size of the subtitle independently to the font-size of the main title? There seems to be only one font-size attribute and the subtitle is coming out way too large. I notice the subtitle text comes in between tags named “small” but it would be great to be able to set the fonts independently if this is possible…
Here’s what it looks like. Main font is Gloss and Bloom, sub font is arial. Thanks, @elusien!!
Thank you @elusien. Unfortunately though it made no difference . I’m trying to understand the style code. Should there be a div with class “ss” somewhere? Sorry to be a pain- I hope I’m not holding you up from diving into your pool…
Jon, no you aren’t doing anything wrong. You are using TYPE=1, which different from all the other TYPEs. It is the only one that does not have <span class=“ss”> elements, since they are used to animate individual characters and TYPE=1 only animates complete lines.
Just change the ‘subtitle’ line of code to:
<div id="sub_title"><small><span class="ss">A piece for flute and piano</span></small></div>
i.e. put the text inside a <span class=“ss”> element. Then play around with the -40px and the 0.5em.
Brilliant brilliant brilliant. Thank you thank you thank you @elusien
How I did it:
Place a nice butterfly photo on track V1 (Shotcut).
Go to:
(follow instructions to create a HTML file. Make sure it has white text on a black background).
Double-click to open the HTML file in Chrome.
Take a screen capture of the whole screen using ShareX or OBS.
Save as an MP4.
Import the screen capture MP4, place on V3.
Trim as necessary and apply a crop:rectangle filter to isolate the design.
Apply a Blend Mode filter and select “add”.
On V2, add a black colour clip.
Re-size using the Size Position and Rotate filter (select “distort”).
Apply an Opacity filter to make it semi-transparent.
Apply a fade in and fade out to the clip.
Position the clips carefully to create the desired timing.
Place music track on A1.
Glad you got it to work. You shouldn’t have to go through hoops like that though, so I’ll look at updating the code to provide a subtitle font-size option.