linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
452 stars 73 forks source link

Deepin bug after Manjaro update #355

Closed cmrqs closed 7 years ago

cmrqs commented 7 years ago

Hello,

I've noticed a bug after Manjaro's 08/18 update. I think it's caused by dtksettings. Desktop icons are invisible, the font is bigger, the dock is bugged... please help.

deepinscreenshot_20170825233821

oberon-manjaro commented 7 years ago

I cannot confirm this. Here everything looks normal with latest Manjaro packages. Do you by any chance still have qt5ct installed? If so, remove it and verify that the output of echo $QT_QPA_PLATFORMTHEME returns empty.

oberon-manjaro commented 7 years ago

deepin

ag14774 commented 7 years ago

After the last update the font is thicker(like it is bold) in text editors. Both in gedit and Atom: deepinscreenshot_select-area_20171028184658

The font in terminal is also thicker

oberon-manjaro commented 7 years ago

I'm sorry, I cannot reproduce. Seems to be your settings. Here everything looks fine:

deepin-font

ag14774 commented 7 years ago

hmm under "Font" what is Monospaced Font options supposed to do? It's currently set to DejaVu Sans Mono but changing it doesn't seem to change anything? Maybe that's related?

ag14774 commented 7 years ago

ok echo $QT_QPA_PLATFORMTHEME returns qt5ct but I don't have it installed. That must be it

felixonmars commented 7 years ago

That variable should not be set manually. Is that something set by Manjaro or yourself?

ag14774 commented 7 years ago

I haven't done anything to set it so I am guessing it's Manjaro maybe? are there other applications that set that variable?

ag14774 commented 7 years ago

I have this line in ~/.profile: [[ "$XDG_CURRENT_DESKTOP" == "KDE" ]] || [[ "$XDG_CURRENT_DESKTOP" == "GNOME" ]] || export QT_QPA_PLATFORMTHEME="qt5ct"

Is this supposed to be there? I don't know how it got there.

A similar line without the 'GNOME' part is also in /etc/skel/.profile

oberon-manjaro commented 7 years ago

Right, I know it shouldn't be set, but I just realize that our build tools configure it in ~/.profile automatically for any environment except KDE 😉 Please remove the line there! Thanks.

ag14774 commented 7 years ago

Thanks. I removed the line and rebooted. Now the variable returns empty but the font is still thicker. Changing the Monospaced Font option still doesn't do anything.

ag14774 commented 7 years ago

Also is com/deepin/wrap/gnome/desktop/interface/monospace-font-name supposed to do anything? I tried changing that to 'Monospace 15' instead of 'Monospace 11' with dconf to see if it makes any difference but it doesn't(after reboot)

hualet commented 7 years ago

@jouyouyun

jouyouyun commented 7 years ago

After the monospace font changed, please paste the outputs of command fc-match mono.

ag14774 commented 7 years ago
$fc-match mono
Fontconfig error: "/home/ageorgiou/.config/fontconfig/conf.d/99-deepin.conf", line 1: Unsupported version '2.0'

VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
jouyouyun commented 7 years ago

Please update the file /home/ageorgiou/.config/fontconfig/conf.d/99-deepin.conf, thanks!

jouyouyun commented 7 years ago

What's the version of fontconfig and freetype?

jouyouyun commented 7 years ago

@ag14774 Try modified <?xml version="2.0"?> to <?xml version="1.0"?> after font changed by edited the file /home/ageorgiou/.config/fontconfig/conf.d/99-deepin.conf.

jouyouyun commented 7 years ago

There is a same bug, please see: https://bbs.deepin.org/forum.php?mod=viewthread&tid=44705

ag14774 commented 7 years ago

I could find these packages: freetype2 : 2.8.1-1 fontconfig : 2.12.6-1 Your trick with the xml version change works for all the other fonts. But DejaVuSansMono defaults to the bold one:

$fc-match mono DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"

In the control center I have selected DejaVu Sans Mono. How can I remove the "bold" part?

ag14774 commented 7 years ago

@oberon2007 Could you tell me what version of freetype2 and fontconfig should I have?

Also can you tell me what is your output of fc-match mono? Is it also DejaVuSansMono-Bold.ttf?

jouyouyun commented 7 years ago

Paste the outputs of fc-list |grep 'DejaVu Sans Mono'

jouyouyun commented 7 years ago

Fixed the bug of font xml version, see: https://github.com/linuxdeepin/dde-daemon/commit/7ed2035634cf296b6966c6abade65b48795721dd

ag14774 commented 7 years ago

This is the output:

$ fc-list |grep 'DejaVu Sans Mono'
/usr/share/fonts/TTF/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
jouyouyun commented 7 years ago

@ag14774 Your 'DejaVu Sans Mono' only bold style, so it's DejaVuSansMono-Bold.ttf, no fault.

ag14774 commented 7 years ago

May I ask what is the default monospace font of Deepin? Cause I've never changed it and I am sure that the font is thicker now.

And what about DejaVuSansMono.ttf? I am not choosing bold though: untitled

I have the normal DejaVuSansMono selected. There is no bold option in the control center. The font definitely doesn't look like the preview in the control center. Also look at the screenshot posted by @oberon2007 above. The font seems much more thin in that picture.

jouyouyun commented 7 years ago

Now the default monospace is 'Noto Mono', the deepin control-center unsupport font style settings.

ag14774 commented 7 years ago

Ok I switched to Noto Mono and changed the xml version to 1.0. The font is better now. Thanks @Carl-Marx You can close this now if you want :p Sorry I hijacked your issue