Repository navigation
More caption fonts, and your own fonts from a folder - #81
Open
Omar-Elwazeery wants to merge 1 commit into
Open
Omar-Elwazeery wants to merge 1 commit into
Omar-Elwazeery wants to merge 1 commit into
Conversation
Captions can now be drawn in any of 15 bundled fonts, picked separately from the caption style: when making clips, in a creator's settings, and in the clip editor. Each font is resized so its capital letters stand as tall as the style's own font. The new fonts are free to bundle; their licences are next to them in studio/fonts. People can also bring their own: any .ttf or .otf file put in the my-fonts folder of the data folder shows up in the list, with a preview in that font. With PEAKCUT_SYSTEM_FONTS=1 the fonts installed on the computer are listed too. A font that has gone falls back to the style's own, so clips are still made. Closes haziqahmedqasmi#78 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #78: more caption fonts, and a way to bring your own.
What changes
12 new bundled fonts. Captions can now use 15 fonts: Poppins, Anton and Archivo Black, plus Bebas Neue, Kanit, Barlow Condensed, Paytone One, Righteous, Bangers, Luckiest Guy, Bungee, Rubik Mono One, Black Ops One, Press Start 2P (pixel) and Pacifico (script).
studio/fonts.Your own fonts. Any
.ttfor.otffile in themy-fontsfolder (inside the data folder) shows up in the font list under "Your fonts".Fonts installed on the computer. These are listed too with
PEAKCUT_SYSTEM_FONTS=1, under "On this computer". The setting is off by default: a computer has hundreds of fonts (symbol fonts and other alphabets among them), and on a server they'd be the server's fonts, not the user's.A small fix: the "Bounce" preview tile used to show Archivo Black, but Bounce clips are made in Poppins. The preview now shows Poppins.
Settings
PEAKCUT_MY_FONTS: a different folder for your own fonts.PEAKCUT_SYSTEM_FONTS=1: also list the computer's fonts.Both are in
.env.example, and the README and AGENTS.md are updated.Tested
python tests/run.py: all 32 test groups pass, including the newtests/test_fonts.py. The new test checks:🤖 Generated with Claude Code