Skip to content

Commit

Permalink
NixOS font bug docs
Browse files Browse the repository at this point in the history
add changelog
  • Loading branch information
atterpac committed Feb 19, 2024
1 parent 6381c15 commit 461b540
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
27 changes: 27 additions & 0 deletions v3/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use the base image
FROM lscr.io/linuxserver/rdesktop:ubuntu-xfce
COPY --from=golang:latest /usr/local/go/ /usr/local/go/

ENV PATH="/usr/local/go/bin:${PATH}"
# Set environment variables
ENV PUID=1000
ENV PGID=1000

# Set the working directory
WORKDIR /app

# Install Deps
RUN apt-get update && \
apt-get install -y git make gcc build-essential pkg-config libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.0-dev && \
apt-get clean

# Install Wails
RUN git clone https://github.com/wailsapp/wails.git
RUN cd wails && \
git checkout v3-alpha && \
cd v3/cmd/wails3 && \
go install
# Expose ports
EXPOSE 3389


10 changes: 10 additions & 0 deletions website/docs/guides/nixos-font.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# NixOS FontSize

NixOS/Wayland can cause a bug where the `font-size` css property does 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/";
'';
```
1 change: 1 addition & 0 deletions website/src/pages/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Security` in case of vulnerabilities.

## [Unreleased]
- Added docs to help fix NixOs/Wayland font-size css issue. Added by @atterpac in [PR](https://github.com/wailsapp/wails/pull/3268)

## v2.8.0 - 2024-02-08

Expand Down

0 comments on commit 461b540

Please sign in to comment.