HOWTO: Have All Your Windows Fonts in Ubuntu.

让ubuntu可以使用你windows的字体

Well, I had a giant tutorial going, but my computer crashed. So instead of making a giant tutorial explaining everything step-by-step, breaking down each action and command, I’m just going to post the bare minimum. Maybe later I’ll edit it (or someone else), but until then, following this tutorial blindly should also work.
 
This is a tutorial teaching you how to retrieve all your fonts from your Windows partition, and having them in Ubuntu. It’s pretty simple and quick, and you’ll have all your favorite fonts! Hurray for Wingdings!
 
First, you need to mount your Windows partition (skip these steps you are already mounted). You should know if you’ve mounted this or not; if you can access your files from your Windows partition by clicking an icon on your desktop, you are in business. If not, open up Terminal and type in the following:
 
Quote:

sudo mkdir /media/windows 
 
This action will ask for a password, type it in. Once done, a new folder called ‘windows’ will be located at Places –> Computer –> Filesystem –> media.
 
Quote:

sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=02

22 

 
All this gibberish means that your windows partition is now mounted in /media/windows.
 
Next, we move our fonts from windows to ubuntu.
 
Start here if your windows partition is already mounted!
 
Because people may have already mounted windows and placed it under a different name, we are going to copy and paste the fonts from windows in Ubuntu, rather than just grab them from windows directly.
 
So, go to Places –> windows (below ‘Computer’) –> WINDOWS –> Fonts
 
And your fonts are right there! Press Ctrl+A to select them all, and then Ctrl+C to copy them.
 
Now, go to your desktop, right click and make a new folder called ‘fonts’. Open the folder, and press Ctrl+V to paste the fonts in there.
 
Open up Terminal (if you closed it), and type in
 
Quote:

cd Desktop/fonts 
 
This will change the working directory to the directory you just made. Next,
 
Quote:

sudo cp *.ttf *.TTF /usr/share/fonts/truetype/msttcorefonts/ 
 
This copies the folder’s fonts to ubuntu’s font list.
 
Your done! Go to System –> Preferences –> Font and check ’em!
 
You may now delete the fonts folder you made on your desktop; no longer needed.
 
Bonus: You may also need to rebuild your font cache, I do not know if this is needed.
 
Quote:

sudo fc-cache -f -v 

Leave a Reply

Your email address will not be published. Required fields are marked *