Font rendering breaks after update to v14(Bug?)



  • I was update vivaldi 1.13.1008.34-1 -> 1.14.1077.45-1. After restart browser I see ugly font rendering.
    Vivaldi 13:
    0_1518696287613_wiki-13.png
    Vivaldi 14:
    0_1518696297546_wiki-14.png

    The best case is to open both images in neighboring tabs and switch between them.
    Vivaldi 14 renders fonts exactly like clear Chrome.

    Are I should to add new bug report for this?


  • Moderator

    @hxss The fault is very obvious in your screen shots.

    I loaded one in IrfanView fullscreen @ 1:1 and used left/right buttons to switch between them. Most of the problem seems to be caused by the width of the lowercase "t", which is very odd.

    Submit a Bug Report



  • @pesala this is not the only 't' problem. All chars have broken width/position. Check word "employed" in last line - 'm', 'y', dots over 'i'. This is native Chrome mechanism of font rendering on Linux.


  • Moderator

    Tell me which font you see if you use Inspect on the page, and select Tab Elements and at the right the tab Computed.
    Scroll down and look for rendered fonts.


  • Moderator

    Tested, now https://en.wikipedia.org/wiki/Lorem_ipsum
    I can not see such issue on my Debian 8 KDE 4, my Vivaldi uses Liberation Sans.

    Perhaps you have a broken font which has no correct font-spacing table.



  • @gwen-dragon bug report VB-37716. The problem not only with my main font.

    OS: Arch Linux 4.15.3-1-zen
    DE: XFCE 4.12.4-1
    fontconfig 2.12.6+5+g665584a-1
    Fontconfig: https://gist.github.com/hxss/1090b76345a450117e127b05b80bb7f4
    My main sans font(on which the most changes are noticeable): Google Roboto(https://fonts.google.com/specimen/Roboto), installed from community: https://www.archlinux.org/packages/community/any/ttf-roboto/

    Examples: https://imgur.com/a/YwhlW

    upd.: And in v13 Roboto looks good.


  • Moderator

    @hxss I remember i had last year a Google font which was broken and i removed it from Linux and installed font family DejaVu.


  • Moderator

    Oh, perhaps something to do with some graphic cards (yes! true) and active Hardware Acceleration.
    See chrome://settings/?search=hardware



  • @gwen-dragon acceleration enabled 🙂 (this is I write here about video acceleration on Skylake)

    Here is DejaVu(don't like this fat font):
    13:
    0_1518719503022_wiki-dejavu-13.png
    14:
    0_1518719509997_wiki-dejavu-14.png

    Images added to imgur album.

    Upd.: and here is Chrome Version 64.0.3282.167 (Official Build) (64-bit):
    0_1518720004715_Screenshot_2018-02-15_23-38-22.png


  • Moderator

    Does the bad rendering happen with Disabled HWA?



  • @gwen-dragon

    Does the bad rendering happen with Disabled HWA?

    Yes.


  • Moderator

    Really strange font render bug.
    May depend on installed Linux font engine?



  • @gwen-dragon the problem appeared after upgrade Vivaldi to v14. I didn't change fontconfig or other pkg's. The problem only in Vivaldi v14 and in Chrome Official.



  • Did you try to erase and rescan existing font cache files?
    fc-cache -rv



  • @wernerfp yes, I tryed. Nothing changed.
    You can test it itself in this VM created specially for this bug.

    • hxss:123
    • use startx for start X 🙂
    • in ~/downloads exist 2 scripts for update to v14 or downgrade to v13
    • also installed Chrome
    • this system have same fonts and fontconfig as my machine


  • @wernerfp any news?



  • hey @hxss , I'm not sure if can help but, looking the features of Fontforge there's a voice that say:

    • This package also provides these programs and utilities:
      fontimage - produce a font thumbnail image;
      fontlint - checks the font for certain common errors;
      sfddiff - compare two font files.

    It can be downloaded from Manager, or you can go here.



  • @marko-indaco as I said above the problem is not only about Roboto. All fonts(including default Dejavu) have bugs in v14.

    @Gwen-Dragon Do you doing something with this bug? Can I help you something? Do you test VM that I share above?



  • I was find, that on chrome start in console writes many errors about fontconfig:

    Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
    Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
    Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
    

    So I was comment all mentioned lines and was try to start chrome again - still ugly fonts 🙂

    0_1523566249655_Screenshot from 2018-04-13 01-46-39.png



  • problem solved by disabling autohinting and using hintslight for Roboto.


 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.