You are not logged in.
Why such a major difference between 'terminal' and 'rxvt-unicode-patched' on my system? These don't even look like the same font to me.
terminal:
urxvt:
$ cat ~/.config/Terminal/terminalrc
[Configuration]
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBordersDefault=TRUE
MiscCursorBlinks=FALSE
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
MiscDefaultGeometry=80x24
MiscInheritGeometry=FALSE
MiscMenubarDefault=TRUE
MiscMouseAutohide=FALSE
MiscToolbarsDefault=FALSE
MiscConfirmClose=FALSE
MiscCycleTabs=TRUE
MiscTabCloseButtons=TRUE
MiscTabCloseMiddleClick=TRUE
MiscTabPosition=GTK_POS_TOP
MiscHighlightUrls=TRUE
ScrollingOnOutput=FALSE
ScrollingLines=500000
BackgroundDarkness=1.000000
AccelNewTab=<Control>t
AccelCloseTab=<Control>w
AccelCloseWindow=<Alt>F4
AccelNextTab=<Control>grave
ColorBackground=#210821082108
ColorPalette1=#2e2e34343636
ColorPalette2=#cccc00000000
ColorPalette3=#4e4e9a9a0606
ColorPalette4=#c4c4a0a00000
ColorPalette5=#34346565a4a4
ColorPalette6=#757550507b7b
ColorPalette7=#060698989a9a
ColorPalette8=#d3d3d7d7cfcf
ColorPalette9=#555557575353
ColorPalette10=#efef29292929
ColorPalette11=#8a8ae2e23434
ColorPalette12=#fcfce9e94f4f
ColorPalette13=#72729f9fcfcf
ColorPalette14=#adad7f7fa8a8
ColorPalette15=#3434e2e2e2e2
ColorPalette16=#eeeeeeeeecec
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
AccelPaste=
FontName=Ubuntu Mono 10$ cat ~/.Xresources
URxvt*termName:screen-256color
URxvt*loginShell:true
URxvt.iconFile: /usr/share/icons/HighContrast/scalable/apps/utilities-terminal.svg
URxvt.scrollstyle: rxvt
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt.geometry: 112x43
URxvt.depth: 32
URxvt.saveLines: 50000
URxvt.font:xft:ubuntu mono:pixelsize=10
Xft.antialias: rgba
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xft.dpi: 102
URxvt.foreground: #FFFFFF
URxvt.background: #212121
URxvt.color0: #2E3436
URxvt.color1: #CC0000
URxvt.color2: #4E9A06
URxvt.color3: #C4A000
URxvt.color4: #3465A4
URxvt.color5: #75507B
URxvt.color6: #06989A
URxvt.color7: #D3D7CF
URxvt.color8: #555753
URxvt.color9: #EF2929
URxvt.color10: #8AE234
URxvt.color11: #FCE94F
URxvt.color12: #729FCF
URxvt.color13: #AD7FA8
URxvt.color14: #34E2E2
URxvt.color15: #EEEEECLast edited by graysky (2012-04-04 21:32:40)
Offline
I'd guess there is a difference in DPI settings. Terminal gets its settings from Xfce-settings while urxvt gets it from, well, somwhere else
Grep for DPI in X.log and look whether it different from what xfce-settings says.
What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...
... and who is general Failure and why is he reading my harddisk?
Offline
I thought that too but it is set to 102 per the logs which is the same that I defined in ~/.Xresources
$ grep DPI /var/log/Xorg.0.log
[ 14786.706] (**) NVIDIA(0): DPI set to (102, 102); computed from "DisplaySize" MonitorOffline
well, in that case I only have one idea but it's just a wild guess as I have no experience with .Xresources settings:
you put the "pixelsize" parameter to xft in .Xresource. This might be the problem as pixelsize is (as I would understand) DPI-agnostic, it sets the size absolutely, in pixels. But the size settings for Xfce is probably in points - a relative measure dependent on DPI. Again, this is just a guess, no direct experience here..
What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...
... and who is general Failure and why is he reading my harddisk?
Offline
Have you tried removing the dpi setting from urxvt? Perhaps remove the hinting line as well.
Last edited by litemotiv (2012-04-03 22:04:33)
ᶘ ᵒᴥᵒᶅ
Offline
Have you tried removing the dpi setting from urxvt?
Yeah, after reloading the file, `xrdb ~/.Xresources` the font appearance is unchanged ![]()
Offline
Thanks, litemotiv - glad it's not just my system that seems to be affected. Terminal just looks better but I really want to start using urxvt.
Offline
Try increasing the urxvt pixelsize by 1 or 2, it might just do the trick. Also, urxvt takes semi values (11.5 / 12.5) too if you want get your line heights right.
Last edited by litemotiv (2012-04-03 22:26:05)
ᶘ ᵒᴥᵒᶅ
Offline
in the .Xresources try to exchange the "pixelsize" string by just "size" - that should do the trick.
What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...
... and who is general Failure and why is he reading my harddisk?
Offline
@litemotiv - if I set the size to 14 in urxvt that is pretty close but the differences are still there.
@mr.M - size or pixelsize = same effect.
Offline
@litemotiv - if I set the size to 14 in urxvt that is pretty close but the differences are still there.
@mr.M - size or pixelsize = same effect.
Afaik, since terminal is a gtk app, it should get it's rendering from your .fonts.conf (cairo?), whereas urxvt uses the simpler xft settings. Have you compared those (autohint, hintstyle etc)? You can also try a different xft renderer from the AUR.
Can you show a comparison where they have (almost) the same size but still look different?
ᶘ ᵒᴥᵒᶅ
Offline
@litemotiv - you could be right. I do not have a ~/.fonts.conf. I am happily using `freetype2-infinality` from the AUR by the way. Here are the comparisons you requested:
terminal (10 pt font):
urxvt (14 pt font):
Last edited by graysky (2012-04-04 20:34:18)
Offline
Have you remembered to patch libxft? Since urxvt is apparently using that ancient library?
Offline
Have you remembered to patch libxft? Since urxvt is apparently using that ancient library?
Good question brebs. I did but neglected to mention it in my original post. All screenshots are using rxvt-unicode-patched 9.15-2. I edited my first post to make this clear.
Offline
brebs wrote:Have you remembered to patch libxft? Since urxvt is apparently using that ancient library?
Good question brebs. I did but neglected to mention it in my original post. All screenshots are using rxvt-unicode-patched 9.15-2. I edited my first post to make this clear.
The patch is for libxft though, not for urxvt. ![]()
Interestingly though, the regular fonts in your screenshots seem almost identical, except for the dots and a few numbers. The bold characters do differ; do you have any infinality rules that change bold fonts, or any xfce-terminal settings that override things?
ᶘ ᵒᴥᵒᶅ
Offline
@litemotiv - I don't think so... I didn't customize the files at all, just selected a particular style via `/etc/fonts/infinality/infctl.sh setstyle` Is there any other config file I can post to be sure?
$ ls -l /etc/fonts/infinality
total 28
-rw-r--r-- 1 root root 5071 Jan 15 10:00 CHANGELOG
lrwxrwxrwx 1 root root 22 Jan 20 14:33 conf.d -> styles.conf.avail/win7
drwxr-xr-x 2 root root 4096 Jan 15 10:00 conf.src
-rwxr-xr-x 1 root root 1464 Jan 15 10:00 infctl.sh
-rw-r--r-- 1 root root 2418 Jan 15 10:00 infinality.conf
-rw-r--r-- 1 root root 3148 Jan 15 10:00 README
drwxr-xr-x 10 root root 4096 Jan 15 10:00 styles.conf.availcat /etc/fonts/infinality/infinality.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Choose an OS Rendering Style. This will determine B/W, grayscale,
or subpixel antialising and slight, full or no hinting and replacements (if set in next option) -->
<!-- Style should also be set in the infinality-settings.sh file, ususally in /etc/profile.d/ -->
<!-- Choose one of these options:
Infinality - subpixel AA, minimal replacements/tweaks, sans=Arial
Windows 7 - subpixel AA, sans=Arial
Windows XP - subpixel AA, sans=Arial
Windows 98 - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial
OSX - Slight hinting, subpixel AA, sans=Helvetica Neue
OSX2 - No hinting, subpixel AA, sans=Helvetica Neue
Linux - subpixel AA, sans=DejaVu Sans
=== Recommended Setup ===
Run ./infctl.sh script located in the current directory to set the style.
# ./infctl.sh setstyle
=== Manual Setup ===
See the infinality/styles.conf.avail/ directory for all options. To enable
a different style, remove the symlink "conf.d" and link to another style:
# rm conf.d
# ln -s styles.conf.avail/win7 conf.d
-->
<!-- Set DPI. dpi should be set in ~/.Xresources to 96 -->
<!-- setting to 72 here makes the px to pt conversions work better (Chrome) -->
<match target="pattern">
<edit name="dpi" mode="assign">
<double>72</double>
</edit>
</match>
<!-- Uncomment this to reject all bitmap fonts -->
<!-- Make sure to run this as root if having problems: fc-cache -f -->
<!--
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable" >
<bool>false</bool>
</patelt>
</pattern>
</rejectfont>
</selectfont>
-->
<!-- Use embedded bitmaps in fonts like Calibri? -->
<match target="font" >
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<!-- Substitute truetype fonts in place of bitmap ones? -->
<match target="pattern" >
<edit name="prefer_outline" mode="assign">
<bool>true</bool>
</edit>
</match>
<!-- Force autohint always -->
<!-- Useful for debugging and for free software purists -->
<match target="font">
<edit name="force_autohint" mode="assign">
<bool>false</bool>
</edit>
</match>
<!-- Run infctl.sh or change the symlink in current directory instead of modifying this -->
<include>infinality/conf.d</include>
</fontconfig>Last edited by graysky (2012-04-04 21:58:54)
Offline
@litemotiv - I don't think so... I didn't customize the files at all, just selected a particular style via `/etc/fonts/infinality/infctl.sh setstyle` Is there any other config file I can post to be sure?
Well, infinality is doing a lot of different stuff, so if libxft isn't patched to pick up those changes i think the difference can be quite big...
One simple workaround you can try though is to override your bold font in .Xresources. For instance, this is a standard declaration:
URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true
URxvt*boldFont: xft:DejaVu Sans Mono:bold:pixelsize=12:antialias=true:hinting=trueBut using this instead:
URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true
URxvt*boldFont: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=trueShould make both variants use the non-bold version, possibly much like your xfce-terminal screenshot.
ᶘ ᵒᴥᵒᶅ
Offline
@lm - it does but I like the regular/bold mix ... just not the way the bold seems to be rendered which is kind fuzzy.
Offline