-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Incorrect calculation of text width (XmbTextEscapement) #728
Comments
This is actually quite an old bug, unsure if a fix has ever been found. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243825 Though, most just use XFT fonts these days, and I don't think this is an issue with them. Have you tried using XFT fonts? |
I just tried changing all instances of It's interesting this bug is that old - I'm surprised I didn't find that bug report! |
I'm unlikely to fix this any time soon. |
@setdebug It could be that your thought of modifying the underline code is part of what is needed to fix this. If you are going to look at this deeper, and look into modifying the code that draws the underline, here is another old bug report to be aware of (underlines not correctly working with non utf-8 characters). https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464363 |
I'm going to close this bug for now. If anyone feels like picking this up and fixing it though, please do! |
Upfront Information
Please provide the following information by running the command and providing
the output.
Running on FreeBSD 13.1 amd64
The configuration file sets the font as follows:
DefaultFont "-*-helvetica-bold-*-*-*-14-*-*-*-*-*-*-*"
In menus, Alt-Tab, etc., the right side of text appears to be cut off when using this font:
If I edit
libs/Flocale.c
near line 2229 like this:The text isn't cut off anymore; however, underlines are then positioned incorrectly because
FlocaleTextWidth
returns different values. I can't find an obvious solution to fix the issue without changing how the underlines are drawn.The text was updated successfully, but these errors were encountered: