Comments (8)
Hi,
The docker images missing some fonts so multi-language support is not so good. But add support for all language is too much hard, so here is a easy way to do this:
- add a path
/foo/bar
mapping to image path/usr/share/fonts/other
- put user custom fonts to
/foo/bar
- restart container
Then everything is done.
from docker-firefox.
Hi,
You can change the Firefox interface language using these instructions:
https://support.mozilla.org/en-US/kb/use-firefox-interface-other-languages-language-pack
from docker-firefox.
In my case, I simply add the " -v /usr/share/fonts:/usr/share/fonts
" bind mount to docker run, as my command given below.
docker run -d -e PULSE_SERVER=tcp:$PULSE_SERVER --name=firefox -p 5800:5800 -v /docker/appdata/firefox:/config:rw -v /dev/shm:/dev/shm --security-opt seccomp=unconfined -v /usr/share/fonts:/usr/share/fonts jlesage/firefox
from docker-firefox.
Setting the ENABLE_CJK_FONT
environment variable to 1
could also do the trick.
from docker-firefox.
This is cool!
from docker-firefox.
将
ENABLE_CJK_FONT
环境变量设置为1
也可以解决问题。
Setting the
ENABLE_CJK_FONT
environment variable to1
could also do the trick.
The ENABLE_CJK_FONT = 1 dosen't seems to work.
from docker-firefox.
Can you provide more details ? The container's log should show that the fonts are installed.
from docker-firefox.
In my case the environment variable will attempt to install the font but will fail because it can't reach the download location at that point in the container startup. I am using this container within a QNAP NAS container station environment and I believe it doesn't bridge the network quick enough on container startup so it fails.
If I go into the container shell afterwards and run the /etc/cont-init.d/10-cjk-font.sh file manually, then it installs the font just fine. It's annoying because every time I have to update the container image or re-create it I have to go in and do it again.
My current solution is I map the directory /usr/share/fonts/wenquanyi to a host location, restarted container, ran the 10-cjk-font.sh script to re-install (into the mapped host volume), and so it will persist. When I re-create the container now, it will see the font already installed and everything works then.
from docker-firefox.
Related Issues (20)
- Increase tabs font size HOT 1
- [Bug] Setting Firefox prefrences via environment variables causes container to fail to start when prefrence value has a '/' character in it HOT 1
- [Feature request] Hardware acceleration for Intel I-GPU HOT 7
- Not able to get the perfect resolution on mobile screen HOT 1
- [Feature request] Firefox ESR HOT 2
- [Bug] WidevineCdm plugin has crashed
- [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
- With option ENABLE_CJK_FONT=1 the container fails to create HOT 5
- 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
- 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
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.