Browse Source

replace Noto with IBM Plex

master
Guillaume Castagnino 3 months ago
parent
commit
5a97cb5cfc
Signed by: casta GPG Key ID: C47D4BFADB084424
  1. 39
      dist-font/cm-data/99-font.sh.addon
  2. 1
      dist-font/cm-data/IBMPlexSans/.uuid
  3. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf
  4. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf
  5. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf
  6. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf
  7. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf
  8. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf
  9. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf
  10. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf
  11. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf
  12. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf
  13. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Bold.ttf
  14. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-BoldItalic.ttf
  15. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Italic.ttf
  16. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Light.ttf
  17. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-LightItalic.ttf
  18. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Medium.ttf
  19. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-MediumItalic.ttf
  20. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Regular.ttf
  21. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Bold.ttf
  22. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-BoldItalic.ttf
  23. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Italic.ttf
  24. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Regular.ttf
  25. BIN
      dist-font/cm-data/NotoSans/NotoSans-Black.ttf
  26. BIN
      dist-font/cm-data/NotoSans/NotoSans-BlackItalic.ttf
  27. BIN
      dist-font/cm-data/NotoSans/NotoSans-Bold.ttf
  28. BIN
      dist-font/cm-data/NotoSans/NotoSans-BoldItalic.ttf
  29. BIN
      dist-font/cm-data/NotoSans/NotoSans-Italic.ttf
  30. BIN
      dist-font/cm-data/NotoSans/NotoSans-Light.ttf
  31. BIN
      dist-font/cm-data/NotoSans/NotoSans-LightItalic.ttf
  32. BIN
      dist-font/cm-data/NotoSans/NotoSans-Medium.ttf
  33. BIN
      dist-font/cm-data/NotoSans/NotoSans-MediumItalic.ttf
  34. BIN
      dist-font/cm-data/NotoSans/NotoSans-Regular.ttf
  35. BIN
      dist-font/cm-data/NotoSans/NotoSans-Thin.ttf
  36. BIN
      dist-font/cm-data/NotoSans/NotoSans-ThinItalic.ttf
  37. 2
      fontpatcher.sh

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

@ -2,18 +2,28 @@ __HEADER__
list_files() {
cat <<EOF
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
fonts/IBMPlexSans-Bold.ttf
fonts/IBMPlexSans-BoldItalic.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-Thin.ttf
fonts/IBMPlexSans-ThinItalic.ttf
fonts/IBMPlexSansCondensed-Bold.ttf
fonts/IBMPlexSansCondensed-BoldItalic.ttf
fonts/IBMPlexSansCondensed-Italic.ttf
fonts/IBMPlexSansCondensed-Light.ttf
fonts/IBMPlexSansCondensed-LightItalic.ttf
fonts/IBMPlexSansCondensed-Medium.ttf
fonts/IBMPlexSansCondensed-MediumItalic.ttf
fonts/IBMPlexSansCondensed-Regular.ttf
fonts/IBMPlexSerif-Bold.ttf
fonts/IBMPlexSerif-BoldItalic.ttf
fonts/IBMPlexSerif-Italic.ttf
fonts/IBMPlexSerif-Regular.ttf
EOF
}
@ -43,7 +53,10 @@ case "$1" in
# update fonts.xml
cp -p $(get_output_path "$SYS/etc/fonts.xml") $(get_output_path "$SYS/etc/fonts.xml").bak
sed -i \
-e "s/Roboto-/NotoSans-/g" \
-e "/Roboto-Black-/d" \
-e "s/Roboto-/IBMPlexSans-/" \
-e "s/RobotoCondensed-/IBMPlexSansCondensed-/" \
-e "s/NotoSerif-/IBMPlexSerif-/" \
$(get_output_path "$SYS/etc/fonts.xml")
# Fix ownership/permissions
for i in $(list_files); do

1
dist-font/cm-data/IBMPlexSans/.uuid

@ -0,0 +1 @@
efb2c895-9a00-47d3-9446-5c6d2083f920

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-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-Thin.ttf

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Regular.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.

2
fontpatcher.sh

@ -1,6 +1,6 @@
#!/bin/sh
for font in dist-font/cm-data/NotoSans/*
for font in $(find dist-font/cm-data/ -name "*.ttf")
do
echo "Patching $font"
fontforge -script fontpatcher.pe $font

Loading…
Cancel
Save