Is there a command such as xwininfo, xdpyinfo, xprop, or xlsclient that will tell me what font an X client window is using?

I'm searching for a command that will certainly report what font an offered X window is set up to make use of. Does such a command exist?

Browsing these devices I did not see an alternative that would certainly offer me this:

• xwininfo
• xdpyinfo
• xprop
• xlsclient

Looking via the result of lsof I see font files that seem in operation, nonetheless it is unclear which ones, if any kind of, are in fact being made use of by an offered window.

Instance

$lsof |grep gnome-ter|grep font | head -8 gnome-ter 3282 saml mem REG 253,0 223040 1180775 /usr/lib64/libfontconfig.so.1.4.4 gnome-ter 3282 saml mem REG 253,0 3656228 1588238 /usr/share/fonts/un-core/UnDotum.ttf gnome-ter 3282 saml mem REG 253,0 585272 266781 /usr/share/fonts/gnu-free/FreeSans.ttf gnome-ter 3282 saml mem REG 253,0 323284 1447753 /usr/share/fonts/dejavu/DejaVuSansMono.ttf gnome-ter 3282 saml mem REG 253,0 190240 1588229 /usr/share/fonts/paktype-naqsh/PakType_Naqsh.ttf gnome-ter 3282 saml mem REG 253,0 683528 1447770 /usr/share/fonts/dejavu/DejaVuSans.ttf gnome-ter 3282 saml mem REG 253,2 42144 10488291 /home/saml/.fonts/ProggyCleanSZBP.ttf gnome-ter 3282 saml mem REG 253,0 15504 1966923 /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-le64.cache-3  To be clear, I'm not curious about this remedy, labelled: : $ gconftool-2 --get /apps/gnome-terminal/global/profile_list
[Default,Profile0]

$gconftool-2 --get /apps/gnome-terminal/profiles/Default/font Monospace 12$ gconftool-2 --get /apps/gnome-terminal/profiles/Profile0/font
TakaoMincho Bold 36


I intend to establish this details using X when possible.

Referrals

7
2022-07-25 20:44:03
Source Share