Repository navigation
v0.1.0
Adds social caption looks, independent text positions, typed override tags, and a single verified font installer. Go callers have three breaking changes to migrate:
ass.ErrNotFoundandass.ErrInvalidValueare removed. Matchcommerr.ErrNotFoundandcommerr.ErrInvalidValuefromgithub.com/psyb0t/ctxerrors/commerrwitherrors.Isinstead.ass.ErrInvalidDocumentandass.ErrInputTooLargeare unchanged.WrapStyleSmartBottomis now 3 andWrapStyleForcedis 2, the values libass (the subtitle renderer FFmpeg uses) gives them. v0.0.1 had them swapped. Code that uses the constants now gets the wrapping it asked for; code that wrote the numbers needs to swap them.Color.Ptrreturns*Colorinstead of*string, so it fillsOverridecolor fields.
Changes:
- Added seven social caption looks with TikTok Sans Bold, Barlow Condensed ExtraBold, Anton, and THE BOLD FONT's free version, with resolution-scaled horizontal margins and lower-middle, center, and upper-hook placement.
- Added independent text positions, the
positionandpositionscommands, and--text-positionfor creation and theming. - Added
tagsfor typed override generation: karaoke, drawing, vector clips, simple fades, style resets, spacing, and axis-specific borders and shadows. - Added custom Script Info headers and comment event creation. With custom headers,
PlayResXandPlayResYfollow them. Scripts without custom headers are unchanged. Header names containing;are rejected. - Added
ass.DefaultPreset, font family constants for the built-in presets, andAlpha.Ptr. - Changed
fonts-installto use one verified installer for every preset font. It downloads each archive once, fetches only missing or changed files, and checks every file before writing any. On Windows it also registers each font for the current user. - Changed the canvas size used for themes and positions when a script omits
PlayResXorPlayResYto the size libass assumes, so margins land where the renderer draws them. - Rejected duplicate JSON fields, ambiguous ASS Format columns, duplicate header edits, invalid generated UTF-8, negative style geometry, conflicting typed overrides, malformed vector clips, invalid fade timings, and non-finite geometry.
- Fixed partial writes and help-output failures being reported as success.
- Fixed reader and writer disagreeing at the maximum timestamp duration, and rejected timestamp arithmetic overflow.
- Fixed a JSON spec over 64 MiB being reported as an oversized ASS file.
- Added tests that render every preset and position with libass, fuzz tests for the reader and writer, and a font download check that runs with
make test-real. CI fails below 90% test coverage.