Skip to content

[Ubuntu, urxvt] Rendering issue? #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Draiken opened this issue Sep 1, 2015 · 18 comments
Closed

[Ubuntu, urxvt] Rendering issue? #65

Draiken opened this issue Sep 1, 2015 · 18 comments

Comments

@Draiken
Copy link

Draiken commented Sep 1, 2015

I am running Ubuntu with urxvt terminal with the following configuration:

*customization: -color
urxvt*background:   #101010
urxvt*color0:   #6c6c6c
urxvt*color1:   #e9897c
urxvt*color10:  #c3f786
urxvt*color11:  #fcfbcc
urxvt*color12:  #b6defb
urxvt*color13:  #fba1fb
urxvt*color14:  #d7d9fc
urxvt*color15:  #e2e2e2
urxvt*color2:   #b6e77d
urxvt*color3:   #ecebbe
urxvt*color4:   #a9cdeb
urxvt*color5:   #ea96eb
urxvt*color6:   #c9caec
urxvt*color7:   #f2f2f2
urxvt*color8:   #747474
urxvt*color9:   #f99286
urxvt*font: xft:Hack:size=14
urxvt*foreground:   #f2f2f2
urxvt*hintstyle:    hintfull
urxvt*metaSendsEscape:  true
urxvt*rgba: none
urxvt*scrollBar:    false
urxvt*scrollstyle:  plain

This is how Hack font is looking :(

selection_052

I've used other fonts before, just added it to ~/.fonts and they worked as expected. Did I miss something?

[Edit: typo]

@andyleejordan
Copy link

It really looks like it's not anti-aliased; can you add an urxvt* option to that, or maybe append :antialias=true to the xft:Hack:size=14?

@Draiken
Copy link
Author

Draiken commented Sep 1, 2015

Yes I've tried that and it didn't change.

My initial attempt was xft:Hack:size=14:antialias=true:style=Regular
I then attempted every variation, removing style, antialias, etc.

I use DejaVu Sans Mono with antialias=true and it works

Giving it another shot, but I'm not optimistic :(

@andyleejordan
Copy link

You probably also tried all the hintstyle and rgba options too then. Sorry to hear about it!

@chrissimpkins chrissimpkins changed the title Rendering issue? [Ubuntu, urxvt] Rendering issue? Sep 2, 2015
@Draiken
Copy link
Author

Draiken commented Sep 2, 2015

Yes, also tried that.

Basically tried all I could find on google before creating an issue.
Just ran out of options 😞

@chrissimpkins
Copy link
Member

I agree with @andschwa, it looks like there is no antialiasing with the glyphs in your screenshot. Happy to help troubleshoot.

Any chance that it is disabled in your /etc/fonts/local.conf? See Stack Overflow post.

@Draiken
Copy link
Author

Draiken commented Sep 2, 2015

Yes, anti-aliasing is enabled. Right now I'm using DejaVu Sans Mono with anti-aliasing and it's working as expected

grep "edit name=\"antialias\"" -R /etc/fonts/conf.d/
/etc/fonts/conf.d/90-fonts-unfonts-core.conf:    <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
/etc/fonts/conf.d/90-fonts-unfonts-core.conf:    <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
/etc/fonts/conf.d/90-fonts-unfonts-core.conf:    <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
/etc/fonts/conf.d/90-fonts-unfonts-core.conf:    <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
/etc/fonts/conf.d/90-fonts-unfonts-core.conf:    <edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
/etc/fonts/conf.d/10-antialias.conf:    <edit name="antialias" mode="assign"><bool>true</bool></edit>

@chrissimpkins
Copy link
Member

do you happen to know if the anti aliasing settings in your window manager (pointed out in that post) happens to apply in your situation?

@Draiken
Copy link
Author

Draiken commented Sep 2, 2015

Okay, got it to a visible state :)
Used this: http://unix.stackexchange.com/questions/65239/smooth-font-rendering-with-xmonad-in-linux-mint

Now my config looks like this:

*customization: -color
Xft.antialias:  1
Xft.dpi:    96
Xft.hinting:    1
Xft.hintstyle:  hintslight
Xft.rgba:   rgb
urxvt*font: xft:DejaVu Sans Mono:size=14:antialias=true:style=Book

But I got another problem... some letters seem to be cut when rendering. You can see it very well on the m letter of the screenshot. It's also easy to see on the cursor, that the letter is rendered to the left of the box instead of the center.

Not sure if this is a font issue or another parameter I must pass onto X.

selection_053

@schauveau
Copy link

I believe that the font in your first screenshot was not Hack. For example the 'g' in hack does not look at all to the one in your screenshot. What you had was probably a fallback font

@Draiken
Copy link
Author

Draiken commented Sep 2, 2015

Tried searching for a way to figure out if there's any error loading the Hack font, can't find what could be causing this

@chrissimpkins
Copy link
Member

@Draiken the letterspacing looks wrong there for some reason. They are too widely set in that editor. It should not look like that. Do you mind posting another typeface with the same settings so that we can compare them?

@Draiken
Copy link
Author

Draiken commented Sep 4, 2015

On the right: xft:DejaVu Sans Mono:size=14:antialias=true
On the left: xft:Hack:size=14:antialias=true

Only big difference I noticed was the i

selection_054

@Draiken
Copy link
Author

Draiken commented Sep 4, 2015

Also, you can clearly see on the first letter of both terminals where the cursor is. The right one the s is in the center, and on the left it's almost out of the box to the left.

@chrissimpkins
Copy link
Member

Mind giving this another try with the test build in #111 ?

@Draiken
Copy link
Author

Draiken commented Sep 22, 2015

Looks much better!
Left one is Hack, right one is DejaVu Sans Mono
selection_055

@chrissimpkins
Copy link
Member

Great to hear that! The tilde renders better for you too. Looks good.

@Draiken
Copy link
Author

Draiken commented Sep 22, 2015

I guess I'll close this... Now using hack by default, so I'll report any issues I may encounter.

@Draiken Draiken closed this as completed Sep 22, 2015
@chrissimpkins
Copy link
Member

please let me know. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants