Page 1 of 1

[SOLVED] Problem installing lots of .ttf fonts

PostPosted: Jul 4th, '14, 05:58
by bots4ever
Hi,

I need help importing fonts. Just to give a background. The fonts are MS Windows based fonts that bears the .ttf extension. They were backed up from an external 500 GB HDD. I have copied the entire ttf folder to "home/(myusername)/Downloads/Fonts" the name of the directory that contains the fonts is called "ttf format" without the double quotes.

I attempted to import these fonts using drakfont by going into "Mageia Control Center" in which I was asked to enter my root password then I clicked "Manage, add and remove fonts. Import Windows(TM) fonts" under "System". Clicks Import in which an "Import fonts" popped up, click "Add" and navigated by clicking "Computer" > home > (myusername) > Downloads > Fonts > "ttf format" (without the quotes) and selected everything in it. Please take note that the fonts on this directory are extracted and shows their .ttf extension.

After selecting all the items I went back to "Import fonts" window and under "Font List" the list box showed "ARRAY(0x30eb1b8)" without the quotes, I selected the item and clicked the "Install" button. I got an error "Could not find any font.".

I closed drakfont, closed Mageia Control Center and re-did the same steps except that, this time, I chose 1 specific font called "2TECH2.TTF" without the quotes. Under the "Font List" box it showed "ARRAY(0x3a42cf0)". Selected that item and clicked the "Install" button and got the same error "Could not find any font.".

Based from the online document found in https://doc.mageia.org/mcc/3/en/content/drakfont.html I used my terminal, did a "su", entered my root password and run "drakfont". I noticed that the terminal showed:

Code: Select all
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 296.
(drakfont:22299): Gtk-WARNING **: GtkImage 0x224c5d0 adjusted size vertical min 49 natural 49 must not decrease below min 52 natural 52
(drakfont:22299): Gtk-WARNING **: GtkImage 0x224c5d0 attempted to adjust its size allocation from -12,3 548x54 to 0,0 536x57. adjust_size_allocation must keep allocation inside original bounds


The tool is running so I went ahead and did the same step as stated above (I am referring to the exact step I did when I imported all the TTF fonts under "ttf format" directory) as I reached the "Font List" under "Import fonts" popup window, I got an item named ARRAY(0x3071ef0). This time I noticed another entry inside my terminal:

Code: Select all
Error creating proxy: The connection is closed (g-io-error-quark, 18)


In which I ignored. I then selected and clicked the "Install" button and ended up with a "Could not find any font" error box. The last output on my terminal are the following:

Code: Select all
(drakfont:22299): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
Before installing any fonts, be sure that you have the right to use and install them on your system.
You can install the fonts the normal way. In rare cases, bogus fonts may hang up your X Server.
Install Specifics Fonts...........
ARRAY(0x3071ef0) :: no such file or directory


I closed drakfont and got this message from terminal:

Code: Select all
The End...........................


I ran the drakfont tool again, did the same steps for importing "2TECH2.TTF". In the "Font List" box under "Import fonts" window, I got an item called "ARRAY(0x2811a80)". Did the same exact procedure as before and ended up with "Could not find any font.".

To complete my test, I went to the directory where "2TECH2.TTF" is located, open it using Font Viewer version 1.1 clicked install and selected "SYSTEM" and it worked. I can confirm that I can select this font in Libre Office Writer "Version: 4.1.5.3 Build ID: 4.1.5.3-1.mga4". Please note that I did check LibreOffice with each steps I stated above to make the test consistent.

Here is the Output of uname -a
Code: Select all
Linux lew.mageia 3.12.21-desktop-2.mga4 #1 SMP Thu Jun 5 21:33:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


Feel free to ask questions or let me know which commands to run for you if there are things you need to know that I have not covered on this post.

I can use Font Viewer to install fonts but with thousands of these fonts, it will take me a long time. Your help is appreciated on this matter and thank you in advance.

Lew

Re: Problem installing lots of .ttf fonts

PostPosted: Jul 4th, '14, 17:40
by doktor5000
drakfont is broken, if you don't import fonts from Windows, but if you want to simply install oner or more font files:
https://bugs.mageia.org/show_bug.cgi?id=11849
https://bugs.mageia.org/show_bug.cgi?id=13627
Has already been fixed in cauldron, so it should work in Mageia 5.

Depending if you want to install them system-wide, or only for your user, you can simply link or copy them to /usr/share/fonts or to ~/.local/share/fonts
See https://wiki.archlinux.org/index.php/fo ... stallation

You can also use KDE systemsettings to import fonts.

Re: Problem installing lots of .ttf fonts

PostPosted: Jul 5th, '14, 07:02
by bots4ever
doktor5000 wrote:drakfont is broken, if you don't import fonts from Windows, but if you want to simply install oner or more font files:
https://bugs.mageia.org/show_bug.cgi?id=11849
https://bugs.mageia.org/show_bug.cgi?id=13627
Has already been fixed in cauldron, so it should work in Mageia 5.

Depending if you want to install them system-wide, or only for your user, you can simply link or copy them to /usr/share/fonts or to ~/.local/share/fonts
See https://wiki.archlinux.org/index.php/fo ... stallation

You can also use KDE systemsettings to import fonts.


Thank you for pointing that out for me doktor5000

I used the KDEs "Font Management" under System Settings and was able to import all my .ttf fonts.

To other users who came from MS Windows that have a large collection of fonts, just make sure that your fonts does not have special characters ($,%,^,~,etc )and double spaces ("bots 4 ever font .ttf" as compared to "bots4everfont.ttf")

Best regards and marking this thread as solved.