Browse Source

add a big patch to handle android 12 that use by default a variable font -> sed is not working

master
Guillaume Castagnino 2 months ago
parent
commit
b751c2962d
Signed by: casta
SSH Key Fingerprint: SHA256:PtJi7zHrXiSWdLApi+BdpmmbITeLq6cI7LZtgsuAtyk
  1. 264
      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-ExtraLight.ttf
  6. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf
  7. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf
  8. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf
  9. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf
  10. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf
  11. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf
  12. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf
  13. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf
  14. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf
  15. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf
  16. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf
  17. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Bold.ttf
  18. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-BoldItalic.ttf
  19. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-ExtraLight.ttf
  20. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-ExtraLightItalic.ttf
  21. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Italic.ttf
  22. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Light.ttf
  23. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-LightItalic.ttf
  24. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Medium.ttf
  25. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-MediumItalic.ttf
  26. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Regular.ttf
  27. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-SemiBold.ttf
  28. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-SemiBoldItalic.ttf
  29. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-Thin.ttf
  30. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-ThinItalic.ttf
  31. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Bold.ttf
  32. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-BoldItalic.ttf
  33. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Italic.ttf
  34. BIN
      dist-font/cm-data/IBMPlexSans/IBMPlexSerif-Regular.ttf

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

@ -2,26 +2,36 @@ __HEADER__
list_files() {
cat <<EOF
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/IBMPlexSans-Bold.ttf
fonts/IBMPlexSansCondensed-BoldItalic.ttf
fonts/IBMPlexSansCondensed-Bold.ttf
fonts/IBMPlexSansCondensed-ExtraLightItalic.ttf
fonts/IBMPlexSansCondensed-ExtraLight.ttf
fonts/IBMPlexSansCondensed-Italic.ttf
fonts/IBMPlexSansCondensed-Light.ttf
fonts/IBMPlexSansCondensed-LightItalic.ttf
fonts/IBMPlexSansCondensed-Medium.ttf
fonts/IBMPlexSansCondensed-Light.ttf
fonts/IBMPlexSansCondensed-MediumItalic.ttf
fonts/IBMPlexSansCondensed-Medium.ttf
fonts/IBMPlexSansCondensed-Regular.ttf
fonts/IBMPlexSerif-Bold.ttf
fonts/IBMPlexSansCondensed-SemiBoldItalic.ttf
fonts/IBMPlexSansCondensed-SemiBold.ttf
fonts/IBMPlexSansCondensed-ThinItalic.ttf
fonts/IBMPlexSansCondensed-Thin.ttf
fonts/IBMPlexSans-ExtraLightItalic.ttf
fonts/IBMPlexSans-ExtraLight.ttf
fonts/IBMPlexSans-Italic.ttf
fonts/IBMPlexSans-LightItalic.ttf
fonts/IBMPlexSans-Light.ttf
fonts/IBMPlexSans-MediumItalic.ttf
fonts/IBMPlexSans-Medium.ttf
fonts/IBMPlexSans-Regular.ttf
fonts/IBMPlexSans-SemiBoldItalic.ttf
fonts/IBMPlexSans-SemiBold.ttf
fonts/IBMPlexSans-ThinItalic.ttf
fonts/IBMPlexSans-Thin.ttf
fonts/IBMPlexSerif-BoldItalic.ttf
fonts/IBMPlexSerif-Bold.ttf
fonts/IBMPlexSerif-Italic.ttf
fonts/IBMPlexSerif-Regular.ttf
EOF
@ -52,6 +62,234 @@ case "$1" in
post-restore)
# update fonts.xml
cp -p $(get_output_path "$SYS/etc/fonts.xml") $(get_output_path "$SYS/etc/fonts.xml").bak
# Try to patch for android 12
patch -p0 "$SYS/etc/fonts.xml" <<EOT
--- fonts.xml.orig 2022-05-12 10:35:06.965519319 +0200
+++ fonts.xml 2022-05-12 10:44:30.635892195 +0200
@@ -24,92 +24,92 @@
<familyset version="23">
<!-- first font is default -->
<family name="sans-serif">
- <font weight="100" style="normal">Roboto-Regular.ttf
+ <font weight="100" style="normal">IBMPlexSans-Thin.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="100" />
</font>
- <font weight="200" style="normal">Roboto-Regular.ttf
+ <font weight="200" style="normal">IBMPlexSans-ExtraLight.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="200" />
</font>
- <font weight="300" style="normal">Roboto-Regular.ttf
+ <font weight="300" style="normal">IBMPlexSans-Light.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="300" />
</font>
- <font weight="400" style="normal">Roboto-Regular.ttf
+ <font weight="400" style="normal">IBMPlexSans-Regular.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="400" />
</font>
- <font weight="500" style="normal">Roboto-Regular.ttf
+ <font weight="500" style="normal">IBMPlexSans-Medium.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="500" />
</font>
- <font weight="600" style="normal">Roboto-Regular.ttf
+ <font weight="600" style="normal">IBMPlexSans-SemiBold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="600" />
</font>
- <font weight="700" style="normal">Roboto-Regular.ttf
+ <font weight="700" style="normal">IBMPlexSans-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="700" />
</font>
- <font weight="800" style="normal">Roboto-Regular.ttf
+ <font weight="800" style="normal">IBMPlexSans-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="800" />
</font>
- <font weight="900" style="normal">Roboto-Regular.ttf
+ <font weight="900" style="normal">IBMPlexSans-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="900" />
</font>
- <font weight="100" style="italic">Roboto-Regular.ttf
+ <font weight="100" style="italic">IBMPlexSans-ThinItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="100" />
</font>
- <font weight="200" style="italic">Roboto-Regular.ttf
+ <font weight="200" style="italic">IBMPlexSans-ExtraLightItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="200" />
</font>
- <font weight="300" style="italic">Roboto-Regular.ttf
+ <font weight="300" style="italic">IBMPlexSans-LightItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="300" />
</font>
- <font weight="400" style="italic">Roboto-Regular.ttf
+ <font weight="400" style="italic">IBMPlexSans-Italic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="400" />
</font>
- <font weight="500" style="italic">Roboto-Regular.ttf
+ <font weight="500" style="italic">IBMPlexSans-MediumItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="500" />
</font>
- <font weight="600" style="italic">Roboto-Regular.ttf
+ <font weight="600" style="italic">IBMPlexSans-SemiBoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="600" />
</font>
- <font weight="700" style="italic">Roboto-Regular.ttf
+ <font weight="700" style="italic">IBMPlexSans-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="700" />
</font>
- <font weight="800" style="italic">Roboto-Regular.ttf
+ <font weight="800" style="italic">IBMPlexSans-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="800" />
</font>
- <font weight="900" style="italic">Roboto-Regular.ttf
+ <font weight="900" style="italic">IBMPlexSans-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="100" />
<axis tag="wght" stylevalue="900" />
@@ -128,92 +128,92 @@
<alias name="verdana" to="sans-serif" />
<family name="sans-serif-condensed">
- <font weight="100" style="normal">Roboto-Regular.ttf
+ <font weight="100" style="normal">IBMPlexSansCondensed-Thin.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="100" />
</font>
- <font weight="200" style="normal">Roboto-Regular.ttf
+ <font weight="200" style="normal">IBMPlexSansCondensed-ExtraLight.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="200" />
</font>
- <font weight="300" style="normal">Roboto-Regular.ttf
+ <font weight="300" style="normal">IBMPlexSansCondensed-Light.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="300" />
</font>
- <font weight="400" style="normal">Roboto-Regular.ttf
+ <font weight="400" style="normal">IBMPlexSansCondensed-Regular.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="400" />
</font>
- <font weight="500" style="normal">Roboto-Regular.ttf
+ <font weight="500" style="normal">IBMPlexSansCondensed-Medium.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="500" />
</font>
- <font weight="600" style="normal">Roboto-Regular.ttf
+ <font weight="600" style="normal">IBMPlexSansCondensed-SemiBold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="600" />
</font>
- <font weight="700" style="normal">Roboto-Regular.ttf
+ <font weight="700" style="normal">IBMPlexSansCondensed-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="700" />
</font>
- <font weight="800" style="normal">Roboto-Regular.ttf
+ <font weight="800" style="normal">IBMPlexSansCondensed-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="800" />
</font>
- <font weight="900" style="normal">Roboto-Regular.ttf
+ <font weight="900" style="normal">IBMPlexSansCondensed-Bold.ttf
<axis tag="ital" stylevalue="0" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="900" />
</font>
- <font weight="100" style="italic">Roboto-Regular.ttf
+ <font weight="100" style="italic">IBMPlexSansCondensed-ThinItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="100" />
</font>
- <font weight="200" style="italic">Roboto-Regular.ttf
+ <font weight="200" style="italic">IBMPlexSansCondensed-ExtraLightItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="200" />
</font>
- <font weight="300" style="italic">Roboto-Regular.ttf
+ <font weight="300" style="italic">IBMPlexSansCondensed-LightItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="300" />
</font>
- <font weight="400" style="italic">Roboto-Regular.ttf
+ <font weight="400" style="italic">IBMPlexSansCondensed-Italic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="400" />
</font>
- <font weight="500" style="italic">Roboto-Regular.ttf
+ <font weight="500" style="italic">IBMPlexSansCondensed-MediumItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="500" />
</font>
- <font weight="600" style="italic">Roboto-Regular.ttf
+ <font weight="600" style="italic">IBMPlexSansCondensed-SemiBoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="600" />
</font>
- <font weight="700" style="italic">Roboto-Regular.ttf
+ <font weight="700" style="italic">IBMPlexSansCondensed-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="700" />
</font>
- <font weight="800" style="italic">Roboto-Regular.ttf
+ <font weight="800" style="italic">IBMPlexSansCondensed-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="800" />
</font>
- <font weight="900" style="italic">Roboto-Regular.ttf
+ <font weight="900" style="italic">IBMPlexSansCondensed-BoldItalic.ttf
<axis tag="ital" stylevalue="1" />
<axis tag="wdth" stylevalue="75" />
<axis tag="wght" stylevalue="900" />
EOT
# sed for < android 12 and serif
sed -i \
-e "/Roboto-Black-/d" \
-e "s/Roboto-/IBMPlexSans-/" \

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

@ -1 +0,0 @@
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-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-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-ExtraLight.ttf

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-ExtraLightItalic.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/IBMPlexSansCondensed-SemiBold.ttf

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

BIN
dist-font/cm-data/IBMPlexSans/IBMPlexSansCondensed-ThinItalic.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.
Loading…
Cancel
Save