You are not logged in.

#1 2015-12-08 23:51:00

rmanne
Member
Registered: 2015-12-08
Posts: 11

[Solved] Very Odd Font Rendering

eVFPeC.png
G3TE0e.png

.Xresources (for the first image)

URxvt*font:             xft:Source Code Pro:pixelsize=13:dpi=128
URxvt*boldFont:         xft:Source Code Pro:style=bold:pixelsize=13:dpi=128
URxvt*italicFont:       xft:Source Code Pro:style=italic:pixelsize=13:dpi=128
URxvt*boldItalicFont:   xft:Source Code Pro:style=bolditalic:pixelsize=13:dpi=128
URxvt*letterSpace:      -2

.Xresources (for the second image)

URxvt*font:             xft:Source Code Pro:pixelsize=13
URxvt*boldFont:         xft:Source Code Pro:style=bold:pixelsize=13
URxvt*italicFont:       xft:Source Code Pro:style=italic:pixelsize=13
URxvt*boldItalicFont:   xft:Source Code Pro:style=bolditalic:pixelsize=13
URxvt*letterSpace:      -2

dPN0BF.png
.Xresources

URxvt*font:             xft:Inconsolata-g:pixelsize=14
URxvt*letterSpace:      -2

In the last one, you can see that the ampersand looks just fine, but in the first two, they look horrible. What might be going wrong? Is that ampersand really from Source Code Pro, or is it some fallback font because urxvt couldn't make a suitable character from the given font? How do I find out and how do I fix it?

/etc/fonts/conf.d/

10-autohint.conf
10-scale-bitmap-fonts.conf
10-sub-pixel-rgb.conf
20-unhint-small-dejavu-sans.conf
20-unhint-small-dejavu-sans-mono.conf
20-unhint-small-dejavu-serif.conf
20-unhint-small-vera.conf
30-metric-aliases.conf
30-urw-aliases.conf
40-nonlatin.conf
45-latin.conf
49-sansserif.conf
50-user.conf
51-local.conf
57-dejavu-sans.conf
57-dejavu-sans-mono.conf
57-dejavu-serif.conf
60-latin.conf
65-fonts-persian.conf
65-nonlatin.conf
69-unifont.conf
70-no-bitmaps.conf
80-delicious.conf
90-synthetic.conf
99pdftoopvp.conf
README

EDIT: This isn't really a solution, but installing the infinality patched versions fixed this for me.


EDIT2: I ended up compiling out font fallback support for my version of urxvt (among some other things): https://github.com/rmanne/urxvt
This completely solves all font problems regardless of any font patches.

Last edited by rmanne (2018-02-26 21:14:20)

Offline

Board footer

Powered by FluxBB