Back to Wails

NixOS FontSize Bug

website/docs/guides/nixos-font.mdx

2.12.0467 B
Original Source

NixOS FontSize Bug

NixOS/Wayland can cause a bug where the font-size css property doesn't affect the rendered page. To fix this add the following to your devShell.

shell
    shellHook = with pkgs; ''
      export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS;
      export GIO_MODULE_DIR="${pkgs.glib-networking}/lib/gio/modules/";
    '';