-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Delete glyph that are NOT been used in the .ass file #28
Comments
If this was implemented, it would be nice to have the option to either
The standard glyphs could be something like unicode=0000-00FF,0370-04FF,2000-206F,20A0-20CF. motbob has a really good blog post about this on nyaa release 1593330, he used this script to strip the fonts. |
This is what I wanted to implement.
I don't understand why someone would need that. If you intend to strip a font, why would you want to retain unused glyphs?
If I do that, this means I also need to change the font name in the style and in the
From what I can see, it miss a lot of detail like |
It makes the editing of subtitles and distribution of fonts much easier. If a subtitle file didn't use the letter 'x' a single time, then had its fonts collected with this script, its glyph would be missing from the font. If somebody later tried to edit the subtitle and add the letter 'x' somewhere, the glyph would be missing, and they would have to find the original font, which may be very hard. A lot of fansubbers get their fonts from attachments on releases. If all of the standard glyphs were stripped from fonts that only use a couple glyphs, that would make things more difficult for everyone, as it would be harder to find useful fonts.
If someone takes a stripped font meant for a certain release and tries to mux it in a release that uses the missing glyphs, that could lead to incredibly hard to fix mistakes. I understand it would be technically complex, but I still think it's very important
I just wanted to include an example of a script that did similar things :) |
https://github.com/wyzdwdz/assfonts does this, although I don't think it supports keeping a standard set of glyphs. |
fontTools allow to create a subset of the font like this:
The text was updated successfully, but these errors were encountered: