Browse Source

switch ibm plex to noto

master
Guillaume Castagnino 2 years ago
parent
commit
047f25fee4
  1. 32
      dist-font/cm-data/99-font.sh.addon
  2. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf
  3. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf
  4. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf
  5. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf
  6. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf
  7. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf
  8. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf
  9. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf
  10. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf
  11. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf
  12. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf
  13. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf
  14. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf
  15. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf
  16. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf
  17. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf
  18. BIN
      dist-font/cm-data/NotoSans/NotoSans-Black.ttf
  19. BIN
      dist-font/cm-data/NotoSans/NotoSans-BlackItalic.ttf
  20. BIN
      dist-font/cm-data/NotoSans/NotoSans-Bold.ttf
  21. BIN
      dist-font/cm-data/NotoSans/NotoSans-BoldItalic.ttf
  22. BIN
      dist-font/cm-data/NotoSans/NotoSans-Italic.ttf
  23. BIN
      dist-font/cm-data/NotoSans/NotoSans-Light.ttf
  24. BIN
      dist-font/cm-data/NotoSans/NotoSans-LightItalic.ttf
  25. BIN
      dist-font/cm-data/NotoSans/NotoSans-Medium.ttf
  26. BIN
      dist-font/cm-data/NotoSans/NotoSans-MediumItalic.ttf
  27. BIN
      dist-font/cm-data/NotoSans/NotoSans-Regular.ttf
  28. BIN
      dist-font/cm-data/NotoSans/NotoSans-Thin.ttf
  29. BIN
      dist-font/cm-data/NotoSans/NotoSans-ThinItalic.ttf
  30. 6
      dist-font/cm.sh
  31. 8
      fontpatcher.pe
  32. 7
      fontpatcher.sh

32
dist-font/cm-data/99-font.sh.addon

@ -24,24 +24,18 @@ export PATH="${PATH}:$S/bin:$S/xbin"
list_files() {
cat <<EOF
fonts/IBMPlexSans-Black.ttf
fonts/IBMPlexSans-BlackItalic.ttf
fonts/IBMPlexSans-Bold.ttf
fonts/IBMPlexSans-BoldItalic.ttf
fonts/IBMPlexSans-Hairline.ttf
fonts/IBMPlexSans-HairlineItalic.ttf
fonts/IBMPlexSans-Heavy.ttf
fonts/IBMPlexSans-HeavyItalic.ttf
fonts/IBMPlexSans-Italic.ttf
fonts/IBMPlexSans-Light.ttf
fonts/IBMPlexSans-LightItalic.ttf
fonts/IBMPlexSans-Medium.ttf
fonts/IBMPlexSans-MediumItalic.ttf
fonts/IBMPlexSans-Regular.ttf
fonts/IBMPlexSans-Semibold.ttf
fonts/IBMPlexSans-SemiboldItalic.ttf
fonts/IBMPlexSans-Thin.ttf
fonts/IBMPlexSans-ThinItalic.ttf
fonts/NotoSans-BlackItalic.ttf
fonts/NotoSans-Black.ttf
fonts/NotoSans-BoldItalic.ttf
fonts/NotoSans-Bold.ttf
fonts/NotoSans-Italic.ttf
fonts/NotoSans-LightItalic.ttf
fonts/NotoSans-Light.ttf
fonts/NotoSans-MediumItalic.ttf
fonts/NotoSans-Medium.ttf
fonts/NotoSans-Regular.ttf
fonts/NotoSans-ThinItalic.ttf
fonts/NotoSans-Thin.ttf
EOF
}
@ -71,7 +65,7 @@ case "$1" in
# update fonts.xml
cp -p "$SYS/etc/fonts.xml" "$SYS/etc/fonts.xml.bak"
sed -i \
-e "s/Roboto-/IBMPlexSans-/g" \
-e "s/Roboto-/NotoSans-/g" \
"$SYS/etc/fonts.xml"
# Fix ownership/permissions
for i in $(list_files); do

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Black.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-BlackItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Bold.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-BoldItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Italic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Light.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-LightItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Medium.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-MediumItalic.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Regular.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-Thin.ttf

Binary file not shown.

BIN
dist-font/cm-data/NotoSans/NotoSans-ThinItalic.ttf

Binary file not shown.

6
dist-font/cm.sh

@ -10,9 +10,9 @@ export PATH="${PATH}:${SYSTEM}/bin:${SYSTEM}/xbin"
# install iptables script
echo "Installing font"
cp cm-data/IBMPlexSans/IBMPlexSans*.ttf ${SYSTEM}/fonts/
chown root:root ${SYSTEM}/fonts/IBMPlexSans*.ttf
chmod 750 ${SYSTEM}/fonts/IBMPlexSans*.ttf
cp cm-data/NotoSans/NotoSans*.ttf ${SYSTEM}/fonts/
chown root:root ${SYSTEM}/fonts/NotoSans*.ttf
chmod 750 ${SYSTEM}/fonts/NotoSans*.ttf
# install restore script
echo "Installing restore script"

8
fontpatcher.pe

@ -0,0 +1,8 @@
#!/usr/bin/env fontforge
Open($1)
Select(0u003A);
Copy();
Select(0uEE01);
Paste();
Generate($1)

7
fontpatcher.sh

@ -0,0 +1,7 @@
#!/bin/sh
for font in dist-font/cm-data/NotoSans/*
do
echo "Patching $font"
fontforge -script fontpatcher.pe $font
done
Loading…
Cancel
Save