LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 04-07-2017, 01:23 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
Inpossibility to install MS core fonts


I try to install M$ core fonts on Mageia 5.1. So I download RPM:

Code:
msttcore-fonts-installer-2.6-1.noarch.rpm
And than try to install it, without success:

Code:
[root@gosia-aio gosia]# urpmi ./msttcore-fonts-installer-2.6-1.noarch.rpm
The selected package can not be installed:
msttcore-fonts-installer-2.6-1.noarch (Because of the unsatisfactory xorg-x11-font-utils package)
Continue anyway (Y/n): n
So I try to install xorg-x11-font-utils package, without success too:

Code:
[root@gosia-aio gosia]# urpmi xorg-x11-font-utils
No package named xorg-x11-font-utils
What I am doing wrong?
Anyway I have squares instead some letters and spaces in Arial, Times New Roman and other typical fonts.

Any help?
 
Old 04-07-2017, 04:02 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
RPM has options to override paranoid behaviour. Things like --nodeps & --force, but you probably need something from the packages it's bellyaching about.
 
Old 04-08-2017, 06:26 AM   #3
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
In my opinion, you would be better off foregoing the package and downloading the fonts manually. It’s what I did under Debian and Ubuntu (I’m not a Mageia user).

One big advantage of this method is that you can then download the fonts just once, and copy them over to any system on which you wish to use them. In addition, while you’re at it, you can also obtain updated and new fonts, which the package may not provide (at least, the Debian package didn’t, last time I looked).

To download the original core fonts, just run the following command:
Code:
wget --base='http://downloads.sourceforge.net/corefonts/' --input-file=- <<'//*EOF'
andale32.exe
arial32.exe
arialb32.exe
comic32.exe
courie32.exe
georgi32.exe
impact32.exe
times32.exe
trebuc32.exe
verdan32.exe
webdin32.exe
wd97vwr32.exe
//*EOF
(Actually, if you’re going to download the updated fonts anyway, then you may skip the arial32.exe, times32.exe, trebuc32.exe, and verdan32.exe downloads, since the EUupdate.EXE file—which will be downloaded next—provides newer versions of these fonts.)

Then, similarly, download the updated and new font files:
Code:
wget --base='http://downloads.sourceforge.net/mscorefonts2/' --input-file=- <<'//*EOF'
EUupdate.EXE
PowerPointViewer.exe
//*EOF
To continue, make sure that the cabextract utility is installed on your system, and run the following sequence of commands to extract the font files from the downloaded files (I’ll ignore the old versions of the updated fonts, since they would get overwritten anyway):
Code:
cabextract --lowercase --filter='*.tt?' 'andale32.exe'
cabextract --lowercase --filter='*.tt?' 'arialb32.exe'
cabextract --lowercase --filter='*.tt?' 'comic32.exe'
cabextract --lowercase --filter='*.tt?' 'courie32.exe'
cabextract --lowercase --filter='*.tt?' 'georgi32.exe'
cabextract --lowercase --filter='*.tt?' 'impact32.exe'
cabextract --lowercase --filter='*.tt?' 'webdin32.exe'
cabextract --lowercase --filter='*.tt?' 'EUupdate.EXE'
cabextract --lowercase --filter='viewer1.cab' 'wd97vwr32.exe'
cabextract --lowercase --filter='ppviewer.cab' 'PowerPointViewer.exe'
cabextract --lowercase --filter='*.tt?' 'viewer1.cab'
cabextract --lowercase --filter='*.tt?' 'ppviewer.cab'
Next, as ‘root’, create the directory to which you will be copying the fonts, …
Code:
mkdir '/usr/share/fonts/truetype/mstt'
… and copy the fonts there:
Code:
cp *.tt? '/usr/share/fonts/truetype/mstt'
Finally, update the font cache:
Code:
fc-cache --force --verbose
Transporting the fonts to another computer.
If you want to be able to easily set up the fonts on any other system, then you may want to pack them up into an archive:
Code:
tar -cvzPf msfonts.tar.gz '/usr/share/fonts/truetype/mstt'
Then, whenever you want to set up the fonts on another computer, just run the following command as ‘root’ to unpack the archive, …
Code:
tar -xvzPf msfonts.tar.gz
… and update the font cache again.
 
1 members found this post helpful.
Old 04-08-2017, 08:26 AM   #4
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Sill I have "squares" in place of spaces and national characters. Strange is that for example "squares" are present in for example Times New Roman but no in Times New Roman Bold or italic.
 
Old 04-08-2017, 03:05 PM   #5
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by mackowiakp View Post
Strange is that for example "squares" are present in for example Times New Roman but no in Times New Roman Bold or italic.
Perhaps you have an old copy of the Times New Roman font lying around somewhere on your system?
As a first quick check, you may want to search for any Times font files, and see what gives:
Code:
find /usr/share/fonts -type f -name 'times*' -printf '%s\t%p\n'
What does that command tell you?
 
1 members found this post helpful.
Old 04-09-2017, 12:52 AM   #6
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Really. Its strange.
Below output from properly working system:

Code:
[maciek@Piotr ~]$ find /usr/share/fonts -type f -name 'times*' -printf '%s\t%p\n'
238612  /usr/share/fonts/msttcorefonts/timesbi.ttf
333900  /usr/share/fonts/msttcorefonts/timesbd.ttf
247092  /usr/share/fonts/msttcorefonts/timesi.ttf
330412  /usr/share/fonts/msttcorefonts/times.ttf
And now from the system we are talking about:

Code:
[gosia@gosia-aio ~]$ find /usr/share/fonts -type f -name 'times*' -printf '%s\t%p\n'
1110872 /usr/share/fonts/drakfont/ttf/times.ttf
1093096 /usr/share/fonts/drakfont/ttf/timesbd.ttf
826688  /usr/share/fonts/drakfont/ttf/timesbi.ttf
884612  /usr/share/fonts/drakfont/ttf/timesi.ttf
59551   /usr/share/fonts/drakfont/Type1/timesbi.pfb
13641   /usr/share/fonts/drakfont/Type1/times.afm
62502   /usr/share/fonts/drakfont/Type1/times.pfb
66043   /usr/share/fonts/drakfont/Type1/timesbd.pfb
13724   /usr/share/fonts/drakfont/Type1/timesbd.afm
13719   /usr/share/fonts/drakfont/Type1/timesbi.afm
13741   /usr/share/fonts/drakfont/Type1/timesi.afm
56726   /usr/share/fonts/drakfont/Type1/timesi.pfb
330412  /usr/share/fonts/msttcorefonts/times.ttf
333900  /usr/share/fonts/msttcorefonts/timesbd.ttf
238612  /usr/share/fonts/msttcorefonts/timesbi.ttf
247092  /usr/share/fonts/msttcorefonts/timesi.ttf
Advice please, what I have to do?
 
Old 04-09-2017, 02:25 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Personally I find that installing the fonts is only half of the battle.

Getting them recognised is the second half. Have you battled with fontconfig and the various apps you wanted to use those fonts?
 
Old 04-09-2017, 02:35 AM   #8
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
On both PC`s I use the same apps. Libre Office, browser, etc. But mainly I use console for C language compiling (not graphical programs but automation) and Bash scripting. So I am not expert in font issues, thats I need help. Maybe it is necessary to remove something?
 
Old 04-09-2017, 03:56 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
have you restarted the x session after installing the new fonts?
did you run 'fc-cache -f' (both as super- and normal user)?
 
Old 04-09-2017, 05:16 AM   #10
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
OK. I removed from PC all font files non-exiting on proper running system and then updated the font cache. Reboot and it works!

Last edited by mackowiakp; 04-10-2017 at 12:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Core Fonts rpm Install Error tehkaao Linux - Software 1 03-06-2007 07:52 PM
Slick fonts in Fedora Core phoenix49 Fedora 2 05-25-2006 10:15 PM
what's diference betwen core fonts and xft fonts? xcore_on Linux - Newbie 2 04-29-2006 08:11 PM
Uploading fonts in Fedora Core 2 guarriman Linux - Newbie 3 01-07-2005 07:12 AM
MS Core Fonts kipp Linux - General 7 01-07-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration