Coder Social home page Coder Social logo

Comments (5)

jlesage avatar jlesage commented on June 19, 2024 1

Looks like the package moved to the community repo. I will fix this.

from docker-firefox.

906051999 avatar 906051999 commented on June 19, 2024 1

解决方案:

  • 此时请停止容器

  • 下载一个中文字体,如AlibabaPuHuiTi-3-55-Regular.ttf

  • docker ps查看jlesage/firefox的容器ID

  • 用下面的命令把字体文件拷贝到容器里:

# docker cp [font file] [CONTAINER ID]:/usr/share/fonts/
docker cp AlibabaPuHuiTi-3-55-Regular.ttf 48aa47cbab16:/usr/share/fonts/
  • /usr/share/fonts/路径下新建一个文件夹cn,将字体文件移动到cn文件夹中

/usr/share/fonts/cn/AlibabaPuHuiTi-3-55-Regular.ttf

  • 进入docker中,编辑etc/cont-init.d/10-cjk-font.sh文件, 在判断中添加 || [ -d /usr/share/fonts/cn]
    if [ -d /usr/share/fonts/truetype/wqy ] || [ -d /usr/share/fonts/wenquanyi ] || [ -d /usr/share/fonts/wqy-zenhei ] || [ -d /usr/share/fonts/cn]
    then
        echo "CJK font already installed."
  • 保存后,重启docker容器即可

from docker-firefox.

stevenshea avatar stevenshea commented on June 19, 2024

Thanks for your work.

I have this problem too.

Can you save this font package for good instead of downloading everytime after reboot?

from docker-firefox.

jlesage avatar jlesage commented on June 19, 2024

Can you save this font package for good instead of downloading everytime after reboot?

Once installed, the package won't be re-installed everytime you restart the container. Only when re-creating the container.

from docker-firefox.

jlesage avatar jlesage commented on June 19, 2024

Fixed with the latest version of the image.

from docker-firefox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.