You are not logged in.
I've been using arch for quite a while, but today I noticed that the text cursor on my laptop isn't vertically centered. It's the most obvious when using kitty, but happens with alacritty and some other GUI apps (such as firefox) as well. I took screenshots of kitty and alacritty, which I attach below. I couldn't take one in firefox as the window loses focus when I take the screenshot and the text cursor disappears, but it's pretty much the same thing. However, when editing in zim everything seems to be fine.
Some (possibly relevant) information: I'm running i3 on the latest linux-lts; Screen resolution is 2560x1600, intel integrated graphics.
I am quite lost on this one, as I have another laptop with basically the same configs and everything seems to be working just fine on that. I have also googled and looked into the wiki but couldn't find anything useful. Any help is greatly appreciated.
https://i.imgur.com/FyK1PaZ.png
https://i.imgur.com/2JC5hsv.png
https://i.imgur.com/hYsQn1y.png
Last edited by archlinuxenjoyer (2023-05-13 12:39:36)
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
Please don't embed huge images directly in your post.
Is this resolution native, did you apply scaling? You probably want to ensure your DPI is set to the actual real value of the system: https://wiki.archlinux.org/title/Xorg#D … ze_and_DPI
Offline
Thank you, I believe the resolution is native, and I set the DPI to 192 with Xft.dpi: 192 in .Xresources. Before posting I've tried tweaking that value but it doesn't seem to do anything... ![]()
I have also followed the wiki to put my display dimensions into /etc/X11/xorg.conf.d/90-monitor.conf, and that is now reflected in the xdpyinfo output:
screen #0:
dimensions: 2560x1600 pixels (286x179 millimeters)
resolution: 227x227 dots per inch
(A bit of googling told me 227 dpi seems to be the correct value). However the issue persists.
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
xrdb -q | grep -i dpinb. that changes typically don't apply to running processes.
Also try
xrandr --dpi 192and
xrandr --dpi 227and teh behavior of eg. xterm.
Online
Thanks, the first command returned
Xft.dpi: 192I tried the next two lines and could see changes in the dpi value but it doesn't fix the issue. tbh I doubt this is purely a display problem, as every other aspect of the display has been working without a problem...
Last edited by archlinuxenjoyer (2023-05-11 15:47:53)
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
Also try … the behavior of eg. xterm.
Just tested, alacritty only responds to the xft resource (but doesn't misbehave here)
What might be relevant is
a) the TE config (so remove that to use the defaults)
b) the used font (try SourceCode Pro…)
Online
Wow. I just tried setting the font to either FreeMono or Source Code Pro in the TEs' configs and both alacritty and kitty are now displaying correctly. Thanks a lot seth!
One more question if you don't mind - right now the text cursor in firefox is still acting a little funny. Not nearly as bad as the screenshots, but the text cursor is also slightly below where it should be centred. To be more precise, if I look really closely the top of the cursor aligns with the top of letter 'h', whereas on my other laptop it has some space both above and below the letter (I assume that is the correct behaviour). I tried changing the font again, no luck this time. Any suggestions for this?
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
Since the browser font is typically defined by the sites CSS, did you make sure that the/a different font is used (or at least the browser resolves the default monospace to your preferences)?
Also, to be more precise: Screenshot? ![]()
Out of curiosity: what font did you previously use that apparently has bogus extents?
Online
Thanks again for the suggestions!
did you make sure that the/a different font is used (or at least the browser resolves the default monospace to your preferences)?
Perhaps I didn't
. Just went into the settings again, flipped the fonts to these
Serif: FreeSerif
Sans-serif: FreeSans
Monospace: FreeMonolo and behold, all is well now!
Also, to be more precise: Screenshot?
Ah, that was referring to the images in my first post.
Out of curiosity: what font did you previously use that apparently has bogus extents?
That's a very good question - I was just running the default fonts, so nothing in the configs. Somehow some way, I was under the impression the default would be "monospace" and when I set it as that in alacritty the weird cursor effect returns. However, a search with
fc-match monospace -s tells me there isn't even a font called that - wonder what that means... I attach a comparison down below.
In the case of firefox it was defaulting to the Nimbus font family.
Font missing: https://i.imgur.com/zKEaBs4.png
FreeMono: https://i.imgur.com/a3HmQ3F.png
monospace: https://i.imgur.com/b6cEnrV.png
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
"monospace" is generic, see
fc-match monospaceto what it's resolved.
You can also change that
~/.config/fontconfig/conf.d/99-monospace.conf
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer><family>Source Code Pro</family></prefer>
</alias>
</fontconfig>Online
fc-match monospace returned
NimbusMonoPS-Regular.otf: "Nimbus Mono PS" "Regular"Testing in alacritty that is indeed the troublemaker font. If I edited the file as you suggested then text will display correctly without any configs in my TEs.
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline
Nimbus has popped up before w/ broken extents - and it's ugly™ ![]()
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online
Totally agree. Dug around a bit and the font was contained in gsfonts and got pulled in by graphviz.
Marked the thread as resolved. Thanks for your help, seth.
A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.
Offline