General TC > General TC Talk
[SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
Rich:
Hi kirin-rex
--- Quote from: kirin-rex on April 14, 2020, 08:55:33 PM ---Back to the font problem.
tldr version: Put a new font in /usr/share/fonts/ but it disappears on reboot. ...
--- End quote ---
--- Quote from: Rich on April 08, 2020, 11:06:44 PM ---Most Linux distros have a persistent file system (/bin, /dev, /etc, /home, /lib, ..... ). When packages get installed, their files get copied
to /usr (/usr/local/bin, /usr/local/lib, ..... ).
Tinycore is different. The file system gets created from scratch every time you boot. This diagram may help:
http://distro.ibiblio.org/tinycorelinux/architecture.html
--- End quote ---
You could add this to your /opt/filetool.lst file:
--- Code: ---usr/share/fonts/MPLUS1p-Medium.ttf
--- End code ---
Then run a backup.
--- Quote ---Some advice says put is in /usr/local/share/fonts/ ...
--- End quote ---
That's the preferred location, unless an application is hard coded to look in /usr/share/fonts/.
--- Quote ---Other advice says maybe put it in ~/.fonts ... but I don't know where that is.
--- End quote ---
When you see ~/ its referring to your home directory (/home/tc/). A filename that begins with a period (.font) is a hidden file.
Consider turning the font file into an extension:
--- Code: ---tce-load -wi squashfs-tools
mkdir -p pkg/usr/local/share/fonts
cp /sdb1/MPLUS1p-Medium.ttf pkg/usr/local/share/fonts/
mksquashfs pkg MPLUS1p-Medium.tcz
cp MPLUS1p-Medium.tcz /etc/sysconfig/tcedir/optional
echo MPLUS1p-Medium.tcz >> /etc/sysconfig/tcedir/onboot.lst
tce-load -i MPLUS1p-Medium.tcz
--- End code ---
Your fonts should now be installed and will also get loaded when you boot.
If your fonts need to be in /usr/share/fonts/ then adjust the lines containing pkg/usr/local/share/fonts accordingly.
kirin-rex:
Thank you so much, Rich! That worked perfectly!
Rich:
Hi kirin-rex
You are welcome. Glad to hear it worked out.
Rich:
Hi kirin-rex
By converting the font file into an extension, you can now copy it to your other laptops.
Navigation
[0] Message Index
[*] Previous page
Go to full version