-
Notifications
You must be signed in to change notification settings - Fork 74
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
Text: support font widths >16 #310
Comments
Thanks for the samples. Spleen-32x64 works, but the HaxorNarrow ones are not displayed properly, even for size 15. |
That's odd. I just checked with FreeSub and it works:
|
They seem to be not fixed size fonts. E.g. the exclamation mark (!) is defined only on width=1 (and not drawn in the middle of a 8 pixel wide area). The quotation mark is defined by a x=7 y=4 box, etc.. My (not so sophisticated) BDF loader assumes that the global character box is valid for all other characters. The boudinx box sizes are different in this font type for almost all characters. So it's a limitation, and I'd like to implement more from the BDF standard, but it's highly unlike to implement non-fixed size display. |
Nice :( Ubuntu 18.04 build failed with internal compiler error ?!
I have to do some workaround or reorganization of source then... |
Thanks for the info, I did not know that about bdf fonts. I only linked to that specific font because it sizes >16 which are not so common to find. Would it be possible to detect those fonts and error out with a message like "non fixed size fonts are not supported" rather than just not rendering properly? |
Actually, they were fixed sized fonts but defined in a tricky way which I did not implement originally. And yes, I'm gonna put those font size warning, but first of all, the actual rendering core is so inefficient after recent feature additions that I must rewrite it. That would probably result in that the size limitation could even be omitted. |
Wow pinterf you went all out on this filter. Very little left of what it used to be :) I'll leave the issue open for now and test it whenever there's a new test version. I have a few other minor bugs to report also. |
Since I forgot to mention this issue number in the commit texts, here are the commits: 1653e64 and 6559f4e. One thing left (which is now a lot easier to achieve): honor the original chroma location e.g. top_left for 4:2:0, or left (mpeg2) for 4:2:2. |
Oh nice, so a new chroma placement parameter for Text or will it be hardcoded? |
It could be read from frame properties, or a "placement" parameter. |
I don't think anyone would complain if left is default for both 420 and 422 since almost all (except uhd blurays) consumer video use left. |
placement: started a new issue #328 |
As mentioned in issue #308. BDF fonts with a width >16 are not rendered properly. For testing purposes, here are some fonts that come in sizes >16.
Spleen (32) : https://github.com/fcambus/spleen
HaxorNarrow (17, 18): https://github.com/metan-ucw/fonts
The text was updated successfully, but these errors were encountered: