The DnD Sanctuary

Pings => Otter Browser Forum => Topic started by: Belfrager on 2016-02-13, 10:28:50

Title: Fonts
Post by: Belfrager on 2016-02-13, 10:28:50
Comparing the same webpage rendered by Otter (0.9.09 beta 9) and Opera (12.16) , one can notice that using the same font (DejaVu Serif) at both browser's settings as the normal font, the text at Otter appears more "bolded" than at Opera.

Do I have any way to correct this?
Thks

(https://dndsanctuary.eu/imagecache.php?image=http%3A%2F%2Fi.imgur.com%2F14BYwqp.png&hash=13f1be23fa024facd95f788baad80d66" rel="cached" data-hash="13f1be23fa024facd95f788baad80d66" data-warn="External image, click here to view original" data-url="http://i.imgur.com/14BYwqp.png)


Title: Re: Fonts
Post by: Frenzie on 2016-02-13, 13:26:06
It's possible that you might need to do something geeky like create a ~/.config/fontconfig/fonts.conf file to match up your GTK and Qt styles. Mine contains the following:

Code: [Select]
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font" >
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcdlegacy</const>
</edit>
</match>
</fontconfig>


Anyway, between the lines I mean that looking bolder is probably a stronger hinting or antialiasing. I'm sorry I don't have any direct solution to offer. Btw, which version of Ubuntu is this?
Title: Re: Fonts
Post by: Belfrager on 2016-02-13, 15:29:48
Thanks frenzie but creating config files it's beyond my knowledge as a simple user.
It's strange because I would swear that we're looking into two different fonts.

Using Ubuntu MATE 15.10.
Title: Re: Fonts
Post by: Frenzie on 2016-02-13, 15:53:56
Have you tried going into the font configuration to see if that changes anything? There's a blog post about it here: http://feeblemind.tuxfamily.org/blog/index.php?post/2013/02/02/Linux-Mint%2C-MATE-and-fonts
Title: Re: Fonts
Post by: Belfrager on 2016-02-14, 13:10:25

Have you tried going into the font configuration to see if that changes anything? There's a blog post about it here: http://feeblemind.tuxfamily.org/blog/index.php?post/2013/02/02/Linux-Mint%2C-MATE-and-fonts


I did but as I thought it does not make any difference. OS settings should act globally not affecting just one browser.
(The picture above is from the desktop with Otter and Opera simultaneously rendering the same page, both running under the same OS settings, therefore I think any differences must be the result of each browser settings.)

The mystery is that both browsers are using DejaVu Serif font as the normal font but the result is very different, even looking as two completely different fonts not just effects applied over the font. (you may want to open the image in other tab, at full size, to realize it clearly.)

Maybe the two browsers simply renders the same font in different ways... I don't know...  :eyes:
Title: Re: Fonts
Post by: Emdek on 2016-02-14, 21:52:05
@Belfrager, this might be some issue in QtWebKit or QtGui.
Title: Re: Fonts
Post by: ovas on 2016-02-18, 03:35:36
Not display the font on websites changed the encoding does not work, before such was not.
(https://dndsanctuary.eu/imagecache.php?image=http%3A%2F%2Fimg.megatorrents.kz%2Fgraphic%2Fimages%2F2016%2FFebruary%2F18%2F5D18_56C53BD0.jpg&hash=8ddad938a1002896bd419de5be2aeea4" rel="cached" data-hash="8ddad938a1002896bd419de5be2aeea4" data-warn="External image, click here to view original" data-url="http://img.megatorrents.kz/graphic/images/2016/February/18/5D18_56C53BD0.jpg)
Title: Re: Fonts
Post by: TheSpecialOne on 2016-02-29, 18:25:21
Same here. I get also fancy/disturbed/bold appearance compared to Opera. But only with some fonts... and testet on windows, so I also guess this has something to do with the rendering engine and some sort of antialising/cleartype.

Any suggestions?
Title: Re: Fonts
Post by: Zero3K on 2016-03-04, 23:35:33
I also notice a similar issue involving fonts displayed on CNN.com, etc. I hope that it's a fixable issue and is fixed in a later build.