u/Lanky-School-8984

▲ 1 r/NixOS

asking for help with fonts

https://preview.redd.it/42hlueld5h0h1.png?width=1088&format=png&auto=webp&s=58929d28f13040ea3f9b2937e6ad6b43f414ce25

Hello, nixOS/linux noob here asking for help🙃

Ive just installed nix with plasma de, and i have terrible system font aberration (rainbow effect) after a selected Roboto Mono font as my systemwide font. You can see in screenshot that icons look normal but font looks bad. I didn`t have this problem in Nobara KDE which i used for nearly 5 months.
Can someone pls help me to pinpoint the problem? Is this nix problem or plasma problem?

I`ve tried two solutions(without any success):
Change AA and hinting in KDE itself
Change config itself (with help of LLM):

fonts.packages = with pkgs; [
    roboto          # Основний шрифт Roboto
    roboto-mono     # Моноширинний для термінала
    roboto-serif    # З засічками, якщо знадобиться
  ];
    fonts.fontconfig = {
    enable = true;
    defaultFonts = {
      sansSerif = [ "Roboto" ];
      serif = [ "Roboto Serif" ];
      monospace = [ "Roboto Mono" ];
    };

  # Налаштування для усунення кольорових ореолів:
    subpixel = {
      rgba = "rgb"; # або "none", якщо хочеш повністю прибрати кольорове згладжування
      lcdfilter = "default";
    };
    hinting = {
      enable = true;
      style = "slight"; # "slight" зазвичай найкраще виглядає для Roboto
    };
  };
reddit.com
u/Lanky-School-8984 — 4 days ago