Skip to content

Commit

Permalink
feat: remove extra google noto fonts
Browse files Browse the repository at this point in the history
I originally added extra Google Noto fonts for my own custom Gnome usage,
but they also were then added upstream. Now that Inter is the new default,
I'm happy and don't need extra fonts.

But also, btw, this commit ensures the use of Inter from the RPM
installed in bOS rather than upstream.
  • Loading branch information
bsherman committed Dec 4, 2024
1 parent d7da2ca commit cb5c07c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 16 additions & 0 deletions build_files/desktop-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ set -euox pipefail
echo "Tweaking existing desktop config..."

if [[ ${IMAGE} =~ bluefin|bazzite ]]; then
# copy system files
rsync -rvK /ctx/system_files/silverblue/ /

# custom gnome overrides
mkdir -p /tmp/ublue-schema-test && \
find /usr/share/glib-2.0/schemas/ -type f ! -name "*.gschema.override" -exec cp {} /tmp/ublue-schema-test/ \; && \
Expand All @@ -14,4 +16,18 @@ if [[ ${IMAGE} =~ bluefin|bazzite ]]; then
glib-compile-schemas --strict /tmp/ublue-schema-test || exit 1 && \
echo "Compiling gschema to include bos setting overrides" && \
glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null

# remove extra google-noto fonts, leaving only what silverblue provides
dnf5 remove -y \
google-noto-fonts-all \
google-noto-sans-balinese-fonts \
google-noto-sans-cjk-fonts \
google-noto-sans-javanese-fonts \
google-noto-sans-sundanese-fonts
rm -rf /usr/share/fonts/noto-cjk
dnf5 install -y \
google-noto-sans-cjk-vf-fonts

# remove bluefin provided Inter fonts since we add the RPM
rm -rf /usr/share/fonts/inter
fi
4 changes: 1 addition & 3 deletions build_files/desktop-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ echo "Running desktop packages scripts..."

# common packages installed to desktops
dnf5 install -y \
google-noto-sans-fonts \
ibm-plex-fonts-all \
gh \
gnome-shell-extension-no-overview \
google-noto-sans-fonts \
ibm-plex-fonts-all \
libpcap-devel \
libretls \
ltrace \
Expand Down

0 comments on commit cb5c07c

Please sign in to comment.