-
Notifications
You must be signed in to change notification settings - Fork 1k
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
otf2bdf alternate/bugfix y offset calculation (-y) (was: u8g2_font_tool) #2406
Comments
sounds cool. Is there any example to demonstrate the advantage of your tool compared to the existing u8g2 toolset? |
1,Solve the problem that the OTF2BDF tool does not handle some fonts well, resulting in the misalignment of individual characters,such as oppo 、xiaomi font 。 zuff font , ' will display , (Very many characters)and so on .but OTF2BDF not maintenance。 Our company is already using the new tool, and the problem of Chinese font deviation displayed by the previous tool is still relatively serious |
Is there anything else need me to provide? |
So your tool is a replacement for OTF2BDF and will create a .bdf file, correct? |
It is the equivalent of a U8G2 dedicated font processing software, where the OTF2BDF implementation is partially rewritten to fix the above bugs introduced by OTF2BDF |
The effort of replacing the current u8g2 font generation chain is very high and I still don't see the benefit. I have never seen any font in u8g2 where the comma is located at the wrong place. Is there any existing font in u8g2 where this is the case? |
Maybe you rarely test Chinese? Or Chinese doesn't use many fonts? There have been a lot of abnormalities in the TTF of non-monospaced fonts and single pixels, in fact, not only Chinese, the impact of symbols is universal, the root of the problem lies in the OTF2BDF, this problem we have also troubled for a long time to solve, so I hope to add this tool to the document to help others, not to replace the original font tool, but to have one more option to solve the existing problem, probably most non-Chinese users or users who are not sensitive to font copyright will not encounter this problem |
In addition, I can provide a more obvious ttf font that can reproduce the problem, and you should feel this problem more obviously when you test it yourself |
Yes, such a font would be nice |
|
hmm, thanks for the font. I now see the issue. I am still not sure, whether this is a font issue, but indeed it looks like a otf2bdf problem. I fixed this by adding an extra switch in cases to otf2bdf. u8g2/tools/font/otf2bdf/otf2bdf.c Lines 884 to 888 in c7497ac
Not sure whether the fix is correct, but it will fix the problem with your font. |
it is bug of otf2bdf,but OTF2BDF not maintenance , so i make this tool ,In most cases, Linux users will apt and install without compiling the OTF2BDF, and may not be aware of the problem |
How is your tools calculating the box parameter?I've tested it will generate a very small box that matches most of characters.But for safety considerations, the original code enlarged the box by using the difference between the left and right boundaries. This can make the font appear exceptionally small in certain decoding environments (which is unrelated to your project). |
I have patched otf2bdf: |
The bug fix to my local copy of otf2bdf is here: |
Sorry i didn't see this before.is it a new toos based on the original otf2bdf?i Will have a try. |
I just added the fix view days ago based on this issue here |
Hi,I've written a font survival tool that supports graphics and command lines, can I add it to the intro and tools/font?
https://github.com/Dozingfiretruck/u8g2_font_tool
The text was updated successfully, but these errors were encountered: