sddm / sddm

QML based X11 and Wayland display manager
GNU General Public License v2.0
1.86k stars 327 forks source link

[Plasma 5.8] Clean install of plasma 5.8 gives SDDM a monospace font #718

Open e-y-e opened 7 years ago

e-y-e commented 7 years ago

After installing a clean install of plasma 5.8 with SDDM the login greeter has a monospaced font that looks somewhat like Hack or Clean. However, the font should follow the default font chosen for KDE (Noto Sans in most cases) as the lock screen does.

This occurs on all the SDDM themes.

System information:

Distro: Parabola GNU/Linux

KDE Plasma version: 5.8.0-1 SDDM version: 0.14.0-2

KAMiKAZOW commented 7 years ago

Isn't that a bug with the Breeze theme and better to be filed at KDE, not here?

e-y-e commented 7 years ago

I have no idea, as I said above though, this occurs on all the SDDM themes.

e-y-e commented 7 years ago

So when I run sddm-greeter --theme /usr/share/sddm/themes/breeze the font is handled correctly. However when SDDM runs from the daemon or via systemctl start sddm.service the issue remains.

GauthierPLM commented 7 years ago

Hi,

I have the same issue, but only for the "login failed" message, not for the wole interface (for example, the top part of breeze theme, with the datetime, don't use monospaced font).

efermi commented 7 years ago

Have the same issue on archlinux, only the font is different: Free Mono. However on the Tumbleweed it works fine.

e-y-e commented 7 years ago

@efermi does running sddm-greeter --theme /usr/share/sddm/themes/breeze Give the correct font?

arkadesOrg commented 7 years ago

@e-y-e sddm-greeter --theme /usr/share/sddm/themes/breeze does, but I think sddm ist started by systemd as root, so sddm takes the default root font I guess... cheers

arkadesOrg commented 7 years ago

sddm-greeter --theme /usr/share/sddm/themes/breeze/theme.conf with custom font sudo sddm-greeter --theme /usr/share/sddm/themes/breeze/theme.conf without copying ~.config/kdeglobals to /root didnt work :)

e-y-e commented 7 years ago

copying ~.config/kdeglobals to /root

What exactly do you mean? What file has to be created and where? Copying to /root/.config/kdeglobals doesn't make sudo sddm-greeter --theme /usr/share/sddm/themes/breeze work for me. Thanks for the activity by the way, would be nice to at least find a workaround for this issue.

arkadesOrg commented 7 years ago

I am sorry for my unstable syntax... ...it was my last post before I felt to bed. So I've tried to copy ~/.config/kdeglobals to /root/.config but it didn't work out. I also tried to log into plasma as root to generate all plasma-relevant config-files within root-home. Logged in as root I changed the font settings and theme via systemsettings5. The only effect was that now sudo sddm-greeter --theme /usr/share/sddm/themes/breeze uses breeze-dark instead of breeze-theme for textfields. But sddm.service still didn't change. Finally I've tried to copy /root/.config recursivly to /var/lib/sddm (sddm-home) and chowned it to sddm. The only effect was that sddm.service textfields changed from breeze to breeze-dark. Maybe one could try to add something like timeFont.family: "Oxygen" to /usr/share/sddm/themes/breeze/Main.qml like the maldives-theme does. I have to read into qml reference again...

rwanyoike commented 7 years ago

Try define a default fallback substitution font in /etc. This worked on Archlinux (fontconfig configuration), SDDM stopped using a monospace font.

In /etc/fonts/local.conf:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <!-- Generic name aliasing -->
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>Noto Sans</family>
  </prefer>
 </alias>
 <alias>
  <family>serif</family>
  <prefer>
   <family>Noto Serif</family>
  </prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Noto Mono</family>
  </prefer>
 </alias>
 <dir>~/.fonts</dir>
</fontconfig>

i.e: Fallback to Noto Sans/Serif/Mono, for sans-serif, serif and monospace. Good luck!

Also: http://eosrei.net/articles/2016/02/changing-default-fallback-subsitution-fonts-linux

avivace commented 6 years ago

If anyone wants to customise the font used in the login screen, without having to change the global font or messing with fallbacks, I've made a version of Breeze allowing font customisation (just edit theme.conf!).

b15hop commented 4 years ago

If anyone wants to customise the font used in the login screen, without having to change the global font or messing with fallbacks, I've made a version of Breeze allowing font customisation (just edit theme.conf!).

I tried your theme but the font change doesn't seem to work. I wish the lock screen and sddm screen were interchangeable. Biggest frustration with plasma so far...

avivace commented 4 years ago

I tried your theme but the font change doesn't seem to work. I wish the lock screen and sddm screen were interchangeable. Biggest frustration with plasma so far...

@b15hop Can you open an Issue in that repository? Describe your current setup and the version of plasma you are using so we can track your problem down

b15hop commented 4 years ago

I tried your theme but the font change doesn't seem to work. I wish the lock screen and sddm screen were interchangeable. Biggest frustration with plasma so far...

@b15hop Can you open an Issue in that repository? Describe your current setup and the version of plasma you are using so we can track your problem down

I used the trick above with: /etc/fonts/local.conf and copied & pasted, then modified the file accordingly. Fixed the problem for now. Though I still wish SDDM and the screen locker were the same.

Edit: I tried to post a video of the login but it's failing me. SDDM Video login with custom font