You are not logged in.

#1 2013-09-20 08:33:37

sh4nks
Member
Registered: 2011-06-16
Posts: 41
Website

[SOLVED] Font rendering doesn't work as expected on github

Hey!

I have a problem with the font rendering on github. On Windows it looks normal, but on Arch it looks a bit bold.
Here a comparison picture how it looks on my arch desktop and on my windows desktop:
aepqIOzl.png]

So, how can I solve this problem?

Thanks in advance! smile

Last edited by sh4nks (2014-01-10 15:33:39)

Offline

#2 2013-09-20 10:28:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] Font rendering doesn't work as expected on github

I don't understand the question here: the syntax highlighting looks identical in the two images.

Font rendering looks a bit different.  Is that what you are asking about?  There are font-config settings around to fix that.  Search "font rendering github" for those solutions.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-09-20 11:28:13

sh4nks
Member
Registered: 2011-06-16
Posts: 41
Website

Re: [SOLVED] Font rendering doesn't work as expected on github

Trilby wrote:

I don't understand the question here: the syntax highlighting looks identical in the two images.

Font rendering looks a bit different.  Is that what you are asking about?  There are font-config settings around to fix that.  Search "font rendering github" for those solutions.

Yep thats exactly what I'm looking for smile . I have edited the topic title and my question.

Offline

#4 2013-09-20 11:38:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Font rendering doesn't work as expected on github

Trilby, do you think this should go into https://wiki.archlinux.org/index.php/Fo … leshooting or is there a better place for this fix?

Offline

#5 2013-09-20 14:48:44

nfisher.sr
Member
Registered: 2013-06-15
Posts: 45

Re: [SOLVED] Font rendering doesn't work as expected on github

A pertinent question that I'm sure has been asked before is why does github, which is built around the idea of hosting open source projects, asking for specific fonts in their css that are missing in a lot of base OS installs? If you ask me it's unfriendly towards their user base.

Another pertinent question would be why is the fallback something that's so blurry and unreadable? And is that a fontconfig issue or a webkit issue? I had the same problem with DWB and have seen it come up with a number of other webkit browsers. Always it's the "clean" font.

I'm only posting because workarounds tend to annoy the user, no matter the experience level. They shouldn't be necessary on the open web.

Rant mode off.

Offline

#6 2013-09-20 14:50:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Font rendering doesn't work as expected on github

OP wrote that github looks bad in firefox too, so it's not webkit-only issue.

Offline

#7 2013-09-20 17:48:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] Font rendering doesn't work as expected on github

Hmm, I can't find references to this in the wiki - I thought it was there.  I have definitely see many github-font issues in the forums, most of them are quickly solved with font-config settings.  Some are their own threads like here but many seem to crop up in the browser-specific threads (eg luakit and dwb).

I really don't have any great insight on this though as I know just enough about font-configuration to know how to listen to know more, and copy their configs.  I've used settings in forum posts to solve similar issues of ugly github font rendering.

More directly to Karol's question: Karol if you are confident in writing this up, that troubleshooting section looks like a good place to me.  But perhaps "github" deserves it's own section under troubleshooting font configuration as it is a commonly recurring topic.

Last edited by Trilby (2013-09-20 17:49:57)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2013-09-20 18:22:39

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Font rendering doesn't work as expected on github

As per bohoomil's recommendation, I created and installed the ttf-ms-win8 font package.  At some point, I had an issue with libreoffice actually not actually showing any fonts at all.  After much browsing, I found others who reported the same thing and that the removal of the ms fonts solved the issue (it turned out to be segoe I think).  In the mean time, I tried using the google fonts (ttf-google-fonts-git) and was quite pleased with them… until I navigated to the github page, which was awful.  So in the end, I resintalled the ttf-ms-win8 font package, as the free fonts were apparently insufficient.

So the point of this story is that although I think you can "fix" things to a degree by modifying the font configurations, this is actually a simple case of not having the available font on one's system (and github defaulting to something crappy, as mentioned by nfisher.sr above). 

Take this story/post with a pinch of salt though, as I simply put my font configuration needs in the hands of the amazingly capable bohoomil and his infinality-bundle.  I just do what he tells me to do, and my fonts look amazing.

Offline

#9 2013-09-21 09:39:30

sh4nks
Member
Registered: 2011-06-16
Posts: 41
Website

Re: [SOLVED] Font rendering doesn't work as expected on github

Thanks for your input.
I'll play a bit around and see if I can fix this.
When I have found a solution I'm going to post it here smile

Offline

#10 2013-09-24 08:18:06

sh4nks
Member
Registered: 2011-06-16
Posts: 41
Website

Re: [SOLVED] Font rendering doesn't work as expected on github

This seems to be a problem with the ttf-ms-win8 fonts.
After removing it, the font on github looks normal again. Should I mark it as solved?

Offline

#11 2013-09-24 14:21:57

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Font rendering doesn't work as expected on github

It is your thread, and if you feel that it is solved, then mark it as such.

I am quite preplexed as to why the removal of ttf-ms-win8 would make this better.  I have this package, and it seems to be working great for me.  I'm not sure how font crazy you are, but if you want some nice fonts that someone with know-how maintains, I would recommend you have a look at bohoomil's infinality-bundle.  It is an unofficial repo with signed packages from a prominent member of these forums and community.

Offline

Board footer

Powered by FluxBB