mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 21:49:57 +00:00
[PR #877] [FEATURE] FreeType-based text renderer (-out=spupng with teletext/EIA608) #1720
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/877
State: closed
Merged: Yes
Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
ABSTRACT
The pull request implements a FreeType-based text renderer, which can be used to generate the bitmaps for spupng in the case of teletext/EIA608.
CHANGES
KNOWN ISSUES
Note that the issues will also affect EIA-608 which may not have these issues before (But the new implementation is generally much cleaner, easier to maintain and more extensible and customizable than the old one).
Font needs to be manually set.FIXED (New option -font added to specify font)Characters like "$" will be cut.FIXEDAccented letters don't render. (could be encoding problem)FIXEDNOTE
Please merge this PR after #876 , or it won't compile.
EXAMPLES

Note that the preview is not latest. Please refer to comments for the latest preview.
Example of a good output.
Example of tag rendered as-is.
 (original generated png file)  (transparency is replaced by black) Example of "$" being cut.FIXED