Comments (5)
Looks like the package moved to the community
repo. I will fix this.
from docker-firefox.
解决方案:
-
此时请停止容器
-
下载一个中文字体,如
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.
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.
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.
Fixed with the latest version of the image.
from docker-firefox.
Related Issues (20)
- [Feature request] I want more CJK font configuration HOT 2
- Filesystem access is allowed by firefox, filepicker and permission similar issues HOT 2
- [Feature request] Hope can use custom repo when install CJK HOT 3
- Output of Console.log for developer HOT 5
- Not works when using HTTPS reverse proxy HOT 3
- Can someone explain how to browse the local file system via this browser? HOT 1
- [Feature request] Profile Manager HOT 1
- Add login HOT 1
- [Feature request] New image based on Firefox fork?
- openwrt docker 中文显示乱码 HOT 3
- [Feature request] Improve VNC section of documentation. HOT 3
- [Bug] Firefox Docker Session Disconnects After Inactivity When Accessed Via Web Browser HOT 10
- Can not fetch font-wqy-zenhei HOT 13
- [Bug] Unable to start container HOT 1
- [Feature request] how to get sound HOT 2
- No sound in the container HOT 3
- [Bug] Cannot start the module HOT 1
- [Bug] DNS not working HOT 8
- [Feature request] Resolution? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-firefox.