2025-02-20, 04:22 PM
(This post was last modified: 2025-02-20, 04:24 PM by JackyHe398. Edited 1 time in total.)
You can download the desired font (.ttf) to a directory, then duplicate it 6 times and rename them to:
DejaVuSans.ttf
DejaVuSans-Bold.ttf
DejaVuSansMono.ttf
DejaVuSansMono-Bold.ttf
DejaVuSerif.ttf
DejaVuSerif-Bold.ttf
After that, mount the directory to /usr/share/fonts/truetype/dejavu in Docker. Make sure the permissions are set correctly, and clear the browser cache. I spent hours troubleshooting this issue, so pay close attention.
reference: https://blog.csdn.net/shellingford37/art.../139562054
DejaVuSans.ttf
DejaVuSans-Bold.ttf
DejaVuSansMono.ttf
DejaVuSansMono-Bold.ttf
DejaVuSerif.ttf
DejaVuSerif-Bold.ttf
After that, mount the directory to /usr/share/fonts/truetype/dejavu in Docker. Make sure the permissions are set correctly, and clear the browser cache. I spent hours troubleshooting this issue, so pay close attention.
reference: https://blog.csdn.net/shellingford37/art.../139562054