Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
urxvt ignores hinting settings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
odin_ago
n00b
n00b


Joined: 07 Mar 2011
Posts: 47

PostPosted: Wed May 04, 2016 6:09 pm    Post subject: urxvt ignores hinting settings Reply with quote

I'm trying to get full hinting fonts in urxvt, but it seems to ignore all hinting configuration instructions. I've tried the following settings in .Xresources:
Code:
URxvt*font: xft:Monospace:pixelsize=12:hinting=true:hintstyle=hintfull

and
Code:
Xft.hinting:   True
Xft.hintstyle: hintfull

(and here I've also tried to write true or 1 instead of True). I don't see any effect at all.

(Yes, I've said
Code:
xrdb .Xresources
before starting urxvt. And urxvt really takes some of the options into account, for example font face and size, but not hinting.)

Maybe, .Xresources is an outdated way to configure urxvt? (Yes, it seems to be quite old in general, but I don't know if it is too old for urxvt.) If yes, how do I configure hinting in urxvt?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed May 04, 2016 7:50 pm    Post subject: Reply with quote

odin_ago ...

you have the xft useflag enabled on x11-terms/rxvt-unicode? If so, it may be that antialias isn't also enabled, try the following:

.Xresources:
Xft.antialias: 1
Xft.dpi: 96
Xft.rgba: rgb
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.autohint: 0
Xft.lcdfilter: lcddefault
URxvt.depth: 32
URxvt.font:xft:Monospace:pixelsize=12

HTH & best ... khay
Back to top
View user's profile Send private message
odin_ago
n00b
n00b


Joined: 07 Mar 2011
Posts: 47

PostPosted: Wed May 04, 2016 7:57 pm    Post subject: Reply with quote

Yes, USE=xft is enabled.
I've tried your config, it does not help.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5594

PostPosted: Wed May 04, 2016 8:32 pm    Post subject: Reply with quote

I recall urxvt being wrong for the sake of being (some pedantically useless definition of) "correct" and that I had to do USE="-vanilla alt-font-width" to get it to display fonts properly. Try that maybe?
Back to top
View user's profile Send private message
odin_ago
n00b
n00b


Joined: 07 Mar 2011
Posts: 47

PostPosted: Wed May 04, 2016 9:16 pm    Post subject: Reply with quote

Tried -vanilla +alt-font-width. Still no hinting.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1361
Location: Montréal

PostPosted: Wed May 04, 2016 9:47 pm    Post subject: Reply with quote

Try
Code:
xrdb -merge .Xresources

Than check the settings with
Code:
xrdb -query

_________________
Paul
Back to top
View user's profile Send private message
odin_ago
n00b
n00b


Joined: 07 Mar 2011
Posts: 47

PostPosted: Wed May 04, 2016 10:35 pm    Post subject: Reply with quote

Tried xrdb -merge .Xresources

output of xrdb -query
Code:
URxvt.depth:    32
URxvt.font:     xft:Monospace:pixelsize=12
Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        96
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb


Still no hinting in urxvt
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1361
Location: Montréal

PostPosted: Thu May 05, 2016 2:46 am    Post subject: Reply with quote

What's happen if you try
Code:
Xft.autohint:   1

in .Xresources, then merge the file and query the settings? Is Urxvt still do not have any hinting? It is obvious, but do you close the window and open a new instance of Urxvt? Your desktop environment may have something to do with the hinting.
_________________
Paul
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu May 05, 2016 4:45 am    Post subject: Reply with quote

Ant P. wrote:
I recall urxvt being wrong for the sake of being (some pedantically useless definition of) "correct" and that I had to do USE="-vanilla alt-font-width" to get it to display fonts properly. Try that maybe?

Ant ... I don't know about that but I have the following useflags:

256-color focused-urgency font-styles perl vanilla xft -alt-font-width -blink -buffer-on-clear -fading-colors -iso14755 -mousewheel -pixbuf -secondary-wheel -startup-notification -unicode3 -wcwidth

I think vanilla just switches off applying any gentoo patches (because upstream whined about how "broken" gentoo is in 'man 7 urxvt', and elsewhere), and alt-font-width shouldn't effect xft as afaik its about unicode font width.

@odin_ago ... you haven't mentioned which versions of x11-terms/rxvt-unicode, x11-libs/libXft, media-libs/fontconfig, etc, or what useflags are set on these, how fontconfig is configured (eselect fontconfig list), or what font 'monospace' corresponds with. It might also be worth seeing 'emerge --info'.

best ... khay
Back to top
View user's profile Send private message
odin_ago
n00b
n00b


Joined: 07 Mar 2011
Posts: 47

PostPosted: Thu May 05, 2016 10:45 am    Post subject: Reply with quote

Logicien, Xft.autohint: 1 does not help. Still no hinting. Yes, I restart urxvt every time I try. I don't know how my desktop environment (kde) affects hinting, but in all other programs, as far as I see or remember, I have full hinting even without any special configuration efforts. When I query the settings after Xft.autohint: 1, I get:
Code:
URxvt.depth:    32
URxvt.font:     xft:Monospace:pixelsize=12
Xft.antialias:  1
Xft.autohint:   1
Xft.dpi:        96
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb


khayyam, I don't know how to check "what font 'monospace' corresponds with". Here are answers to the rest of your questions.
Code:
[ebuild   R   ] x11-terms/rxvt-unicode-9.21  USE="256-color alt-font-width blink focused-urgency font-styles mousewheel perl startup-notification xft -buffer-on-clear -fading-colors -iso14755 -pixbuf -secondary-wheel -unicode3 -vanilla -wcwidth"
[ebuild   R   ] x11-libs/libXft-2.3.2  USE="-static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild   R   ] media-libs/fontconfig-2.11.1-r2  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)"
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-scale-bitmap-fonts.conf *
  [4]   10-sub-pixel-bgr.conf
  [5]   10-sub-pixel-rgb.conf
  [6]   10-sub-pixel-vbgr.conf
  [7]   10-sub-pixel-vrgb.conf
  [8]   10-unhinted.conf
  [9]   11-lcdfilter-default.conf
  [10]  11-lcdfilter-legacy.conf
  [11]  11-lcdfilter-light.conf
  [12]  20-unhint-small-dejavu-sans.conf
  [13]  20-unhint-small-dejavu-sans-mono.conf
  [14]  20-unhint-small-dejavu-serif.conf
  [15]  20-unhint-small-vera.conf *
  [16]  25-unhint-nonlatin.conf
  [17]  30-metric-aliases.conf *
  [18]  30-urw-aliases.conf *
  [19]  40-nonlatin.conf *
  [20]  45-latin.conf *
  [21]  49-sansserif.conf *
  [22]  50-user.conf *
  [23]  51-local.conf *
  [24]  57-dejavu-sans.conf
  [25]  57-dejavu-sans-mono.conf
  [26]  57-dejavu-serif.conf
  [27]  60-latin.conf *
  [28]  60-liberation.conf
  [29]  62-croscore-arimo.conf
  [30]  62-croscore-cousine.conf
  [31]  62-croscore-symbolneu.conf
  [32]  62-croscore-tinos.conf
  [33]  65-fonts-persian.conf *
  [34]  65-khmer.conf
  [35]  65-nonlatin.conf *
  [36]  69-unifont.conf *
  [37]  70-no-bitmaps.conf
  [38]  70-yes-bitmaps.conf
  [39]  80-delicious.conf *
  [40]  90-synthetic.conf *
  [41]  99pdftoopvp.conf
Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.22-r4, 4.0.9-gentoo-gnu20160422 x86_64)
=================================================================
System uname: Linux-4.0.9-gentoo-gnu20160422-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     3835804 total,    372576 free
KiB Swap:    8388604 total,   8380604 free
Timestamp of repository gentoo: Sun, 01 May 2016 20:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 --load-average=3.2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apng berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative device-mapper dhcpcd djvu dri dts dvd dvdr ebook emboss encode exif fam firefox flac fontconfig fortran gcj gdbm gif glamor gnutils gpm gtk iconv ipv6 java jpeg kde kipi kpathsea lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds qt3support qt4 readline sdl seccomp semantic-desktop session spell sql sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l video vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US fr fr_FR ru ru_RU de de_DE uk uk_UA be be@latin be_BY eo" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum