Skip to main content

Presets and fonts

Each preset includes its font, text and secondary karaoke colors, background opacity, outline, shadow, and placement. Font size and vertical margin scale with the script height. Social presets also scale their horizontal margins with the script width and stay inside the combined safe area of TikTok, YouTube Shorts and Instagram Reels on a vertical video of any size. Lower and centered social looks keep a wider right margin, clear of TikTok's buttons. assctl safe-area checks a finished file.

A custom theme file can set SideMarginRatio for both sides and RightMarginRatio to give the right side its own margin.

PresetFontText and backgroundSecondary karaoke color
black-goldDejaVu Sans BoldWhite on opaque blackGold
ivory-navyDejaVu SerifIvory on navySky blue
mint-plumDejaVu Sans Mono BoldMint on plumPeach
cleanDejaVu SansWhite text, black outline, clear backgroundSky blue
tiktok-boldTikTok Sans BoldWhite text, black outlineYellow
reels-boldBarlow Condensed ExtraBoldWhite text, black outlineYellow
shorts-impactAntonYellow text, black outlineWhite
social-centerAntonWhite text, black outlineYellow
social-boxTikTok Sans BoldWhite on translucent blackYellow
social-hookBarlow Condensed ExtraBoldYellow text, black outlineWhite
the-boldTHE BOLD FONT free versionWhite text, black outlineYellow

Karaoke tags control the primary and secondary colors. Existing inline tags can override style fields.

Install fonts​

assctl fonts-install
assctl fonts-install --preset ivory-navy
assctl fonts-install --preset tiktok-bold
assctl fonts-install --preset the-bold

Embed fonts​

So that the machine that renders the video needs no installed fonts, store them in the subtitle file's [Fonts] section:

assctl captions --preset tiktok-bold --embed-preset-fonts --spec timing.json --output captions.ass
assctl theme --preset the-bold --embed-preset-fonts --output themed.ass captions.ass
assctl create --embed-font MyFont.ttf --spec script.json --output script.ass

--embed-preset-fonts on captions or theme first installs the preset's verified fonts on your machine, like fonts-install, downloading only the missing ones, then embeds them. It works only with the fonts of the built-in presets; a --theme-file with any other font fails, so embed that font with --embed-font. --embed-font FILE on create, captions or theme embeds any font file and can repeat. A file embedded twice under the same name is rejected.

FFmpeg's subtitles and ass filters load embedded fonts. Embedding copies the font into every file you share, so check that its license allows that. The SIL OFL fonts and DejaVu allow it. Read THE BOLD FONT's accompanying notice before sharing files that embed it.

Omit --preset to install every built-in preset's required font. Downloads come directly from upstream. The installer verifies pinned SHA-256 checksums, installs ordinary TTF files, and keeps each source's license or accompanying notice beside them. Installed, verified files work offline. Corrupted files are replaced on the next successful installation. Verification errors stop that font download before it is written.

FontSource and downloadLicense
TikTok Sans BoldTikTok's releaseSIL OFL 1.1, permits commercial use
AntonGoogle FontsSIL OFL 1.1, permits commercial use
Barlow Condensed ExtraBoldGoogle FontsSIL OFL 1.1, permits commercial use
THE BOLD FONT free versionAuthor's DaFont download page, also linked by the foundryListed as 100% Free on DaFont; retains the author's accompanying RTF notice, not an OFL license
DejaVuDejaVu 2.37DejaVu font license, installed as LICENSE

THE BOLD FONT's free version has fewer glyphs and no lowercase designs. Use uppercase text for that look. Its full version is a separate product sold by the author. assctl includes source URLs and checksums, not font binaries.

PlatformUser font directory
Linux and FreeBSD$XDG_DATA_HOME/fonts/assctl, or ~/.local/share/fonts/assctl
macOS~/Library/Fonts/assctl
Windows%LOCALAPPDATA%/Microsoft/Windows/Fonts

Restart a renderer that was running during installation. On Linux, run fc-cache -f if Fontconfig still selects a fallback. On Windows, fonts-install also registers each font for the current user, so applications find it without opening the file. The installation and rendering checks run on Linux.

ASS files store family names. Install the fonts on the machine that renders the video, or embed them. For custom fonts, supply the font files yourself.

Customize a preset​

Run assctl presets --json and save one object as a custom theme. Edit its fields, then use --theme-file. The CLI guide shows the commands and color format. Box presets create separate background and foreground events for new captions. Applying a theme to an existing file changes style definitions.

Caption placement​

Presets include a default layout. Choose --text-position to replace it independently of appearance. The text position guide owns the layout ratios, canvas rules, and event override behavior. The social layouts follow the platforms' published safe areas. Preview captions with the destination app's controls visible, because a long caption or an extra overlay can still cover them.

The MIT license covers assctl's own code. Downloaded fonts retain their own terms.