editly icon indicating copy to clipboard operation
editly copied to clipboard

[Feature Request] text/title.fontSize

Open therealadityashankar opened this issue 3 years ago • 7 comments

currently there is no way to set a font size for text, so that sux I created a wrapper around this project https://github.com/therealadityashankar/codeVideo, and since I wanted that feature I'd to use a canvas to achieve it, it'd be really cool if this feature could be added

Editly is super amazing btw, thank you so much for creating it

therealadityashankar avatar Jan 04 '21 09:01 therealadityashankar

Definitely would be a good feature to have

seanconrad1 avatar Feb 21 '21 02:02 seanconrad1

I managed to make a custom title using ./sources/fabric/fabricFrameSources.js as inspiration. Started by editing node_modules with patch-package until I was confident with Fabric then easily worked with canvas.

I think having more options on titles would be great, currently a lot of parameters are calculated relative to the video frame dimensions, so it would be quite easily to override those with some params.

nabilfreeman avatar Feb 21 '21 23:02 nabilfreeman

+1

tavisca-amitj avatar Nov 26 '21 11:11 tavisca-amitj

I'm a little stunned this has been open for over 2 years now - there's no reason we should have hardcoded values that can't be changed for title pages, and it looks like a 30 minute fix.

ecc521 avatar Apr 18 '23 11:04 ecc521

I also want to change the fontSize of the type==title, but this feature hasn't been fixed in two years. Eventually, I solved it by modifying the fontSize variable on line 256 of the sources/fabric/fabricFrameSources.js file.

bb2002 avatar Jun 04 '23 15:06 bb2002

This seems like a very useful request. Apparently the pull request above failed because there was a extra space at the end of a comment. Is it possible for somebody to fix this? Thanks.

sjc57 avatar Oct 11 '23 12:10 sjc57

You would be correct that the PR failed strictly for formatting reasons, and could be safely merged. That said, if I remember correctly, I did not implement font size in all the cases where font size might be useful (there are other cases where fonts can be used and font sizes should be configurable), so I don't actually believe merging #250 in it's current state is ideal, as I feel like fontSize should be made standard across the entire library.

You're welcome to clone my repo and use it yourself. That's what I did, so I no longer have any real interest in getting the PR merged

ecc521 avatar Oct 11 '23 19:10 ecc521