WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help  (Read 7500 times)

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: [SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
« Reply #15 on: April 14, 2020, 09:47:08 PM »
Hi kirin-rex
Back to the font problem.
tldr version:  Put a new font in /usr/share/fonts/ but it disappears on reboot. ...
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

You could add this to your  /opt/filetool.lst  file:
Code: [Select]
usr/share/fonts/MPLUS1p-Medium.ttfThen run a backup.

Quote
Some advice says put is in /usr/local/share/fonts/ ...
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.
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: [Select]
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
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.

Offline kirin-rex

  • Newbie
  • *
  • Posts: 22
Re: [SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
« Reply #16 on: April 14, 2020, 10:29:41 PM »
Thank you so much, Rich!  That worked perfectly!

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: [SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
« Reply #17 on: April 14, 2020, 10:43:38 PM »
Hi kirin-rex
You are welcome. Glad to hear it worked out.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: [SOLVED] Japanese Epson Laptop - keyboard help and Japanese font help
« Reply #18 on: April 14, 2020, 10:56:44 PM »
Hi kirin-rex
By converting the font file into an extension, you can now copy it to your other laptops.