Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

(System: Xubuntu 12.10 with XFCE)

Hello,

I have a folder named Fonts on my windows partition which is mounted automatically on boot (why, I don't know, but I like it!). The fonts are sorted in subfolders based on their style (sans, serif, monospace or handwritten). These subfolder contains several .zip-files and their unzipped folders. So in total, these subfolders contain lots of .ttf and .otf files.

Can I somehow copy all those .ttf and .otf files to their respective folders truetype, type1 etc. in /usr/share/fonts with a somewhat simple action? Going through all the font-folders would be mind-numbing. :/

edit I can answer my own question:

sudo find . -name "*.ttf" -exec cp "{}" /usr/share/fonts/truetype/ ";"

and

sudo find . -name "*.otf" -exec cp "{}" /usr/share/fonts/type1/ ";"

is what helped me.

share|improve this question
    
You can also copy them to ~/fonts/ which is a per-user fonts folder. –  Capt.Nemo Jan 25 '13 at 11:29
    
@henry - if you answer your question by clicking on the answer button, rather than inline in the question, the structure works better :-) –  Rory Alsop Jan 25 '13 at 11:55
    
@RoryAlsop I;ve already added a CW answer. henry: If you want me to remove it, tell me and I'll do so. –  hexafraction Jan 25 '13 at 12:00
    
It's ok, ObsessiveSSOF. :) You have some name there. Sorry for my typo. –  henry Jan 25 '13 at 12:36
    
@henry No worries. –  hexafraction Jan 25 '13 at 13:10
add comment

1 Answer

up vote 1 down vote accepted

From OP:

I can answer my own question:

sudo find . -name "*.ttf" -exec cp "{}" /usr/share/fonts/truetype/ ";"

and

sudo find . -name "*.otf" -exec cp "{}" /usr/share/fonts/type1/ ";"

is what helped me.

share|improve this answer
    
@Rory Alsop I know, thanks. :) But I couldn't. It said something along the lines of being blocked for 8 hours and that this is a default setting something something... can't recall it in full, sorry. –  henry Jan 25 '13 at 12:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.