bohoomil / fontconfig-ultimate

freetype2-infinality run-time settings => infinality compatible fontconfig => infinality-bundle
453 stars 38 forks source link

Strange font rendering in Texmaker #46

Open dogabone opened 10 years ago

dogabone commented 10 years ago

I'm a long time Texmaker user, but had to change to TeXstudio because of what I thought was a bug in my system. After some investigation, I found the culprit to be the infinality install.

This is what it looks like with the default settings (style=2 in /etc/profile.d/infinality-settings.sh): vm-test1

This is what it looks like after setting style=5: vm-test2

Before installing infinality, the default setup looked almost like TeXstudio: texst

Is there a fix for this? Maybe by making it ignore some config just like that GIMP fix?

bohoomil commented 10 years ago

I'm afraid I don't understand what you want to fix: screenshots 1 & 2 look OK, shot 3 looks terrible; the other difference between them is DejaVu Sans being used in 1 & 2 and DejaVu Sans Mono in the 3rd one. Where exactly is the rub?…

dogabone commented 10 years ago

Hi, bohoomil. I am sorry if my question wasn't clear. I was trying to point out that the default infinality config (style=2) is giving me fonts that are too light. The default is good for the rest of the system, but Texmaker has this problem, which I am thinking has to do with qt5. Changing the style to 5 will "fix" this, but the rest of the system will have heavier fonts, which I am not too fond of. I was also making a statement that the default system install (without infinality) doesn't have this problem. I can fire up my test VM again and roll-back to older snapshots if you want, as a mean to making comparisons. TeXstudio is using qt4, maybe this is the reason it is not "affected" by this problem. I don't recall having any other qt5 programs installed. If I find any other programs to test, I'll report back. In my last paragraph I cited the fix to GIMP's problem with subpixel rendering (from here https://wiki.archlinux.org/index.php/Infinality-bundle%2Bfonts#GIMP_issues) where a problem with a specific program was fixed by using a special config for that program only. Maybe this was possible in my case too.

goddesse commented 10 years ago

Qt5 changed its gamma handling from Qt4. Users of other systems (like OSX) have complained that their fonts have become too light as well, which the qt devs have been working on fixing. You can try not using a custom FIR filter in the meantime.

dogabone commented 10 years ago

Thanks for the info, goddesse. I did a quick search and this is indeed a problem with qt5. Relevant bugs here and here. I'll close this issue now.

goddesse commented 10 years ago

@dogabone, I don't know that the issue necessarily needs to be closed since perhaps we can find settings that are a decent compromise in the meantime. @bohoomil can decide that, though.

bohoomil commented 10 years ago

@goddesse is right: rendering settings may be improved one day (I'm actually going to try and create one more preset).