LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-21-2010, 03:44 PM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
uninstalling a font in Slackware


installed a couple things with Winetricks and it told me to uninstall the Samyak/Oriya font because it causes problems with some .net applications. It told me to use
Code:
sudo dpkg -r ttf-oriya-fonts
, but I'm not sure if I should install dpkg specifically to do this, or if there's a native slackware way to remove this. Any help?

Thanks
 
Old 11-21-2010, 04:36 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Looks as if the Samyak font is in the ttf-indic-fonts package so 'removepkg ttf-indic-fonts-0.4.7.4-noarch-1.txz'.
 
1 members found this post helpful.
Old 11-27-2010, 03:58 PM   #3
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
I did that, but the problem still happens. Is there a different package for Oriya, maybe?
 
Old 11-27-2010, 04:17 PM   #4
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
nevermind, solved the problem. After removing that package, you have to go through /usr/share/fonts/TTF/fonts.dir and delete the Samyak entry, which is still there after removing the package
 
2 members found this post helpful.
Old 07-25-2016, 06:54 AM   #5
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,477
Blog Entries: 2

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Lightbulb [SOLVED] uninstalling a font in Slackware [updated]

while i hate to drag a thread this old i believe i can help it being better?

the right way seems to be:
Code:
# rm -i /usr/share/fonts/TTF/fonts.*
# mkfontdir
# mkfontscale
after removing the offending font package (arabic?)

Last edited by SCerovec; 07-25-2016 at 06:54 AM. Reason: typo
 
1 members found this post helpful.
Old 07-25-2016, 01:21 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I'm aware of this incompatiblity between winetricks and the ttf-indic-fonts package. I'm shocked to see that it's existed at least since 2010.

Yes, you need to both removepkg the package and rebuild the fonts.dir and fonts.scale files (as per SCerovec's instructions) to get Winetricks to work properly.

Last edited by dugan; 07-25-2016 at 01:23 PM.
 
1 members found this post helpful.
Old 08-16-2016, 06:41 AM   #7
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
You could also need, in addition to the steps outlined earlier, to refresh xlsfonts cache, as this is the command used by winetricks to search for the "bad" fonts:
Code:
xlsfonts -l | grep -i samyak  # check if samyak font is still in X server cache
xlsfonts -l | grep -i oriya   # check if oriya font is still in X server cache
xset fp rehash                # recreate font cache
Now the first two commands should not report any of samyak or oriya fonts anymore.
 
Old 08-18-2016, 06:02 PM   #8
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,477
Blog Entries: 2

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Question

Quote:
Originally Posted by 414N View Post
You could also need, in addition to the steps outlined earlier, to refresh xlsfonts cache, as this is the command used by winetricks to search for the "bad" fonts:
Code:
xlsfonts -l | grep -i samyak  # check if samyak font is still in X server cache
xlsfonts -l | grep -i oriya   # check if oriya font is still in X server cache
xset fp rehash                # recreate font cache
Now the first two commands should not report any of samyak or oriya fonts anymore.
Code:
# xset fp rehash
xset:  bad font path element (#0), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
$ xset fp rehash
xset:  bad font path element (#0), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
why error?

Last edited by SCerovec; 08-18-2016 at 06:03 PM. Reason: missing <cr>
 
Old 08-19-2016, 03:38 AM   #9
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
I haven't got that error both running that command as normal user and as root.
I guess you have something fishy going on in the /usr/share/fonts/TTF directory: have you recreated the fonts.dir and fonts.scale files inside of it?
Code:
# cd /usr/share/fonts/TTF/
# rm fonts.{dir,scale}
# mkfontdir
# mkfontscale
# xset fp rehash
 
1 members found this post helpful.
Old 08-19-2016, 10:39 AM   #10
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,477
Blog Entries: 2

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Lightbulb

Code:
bash-4.3# cd /usr/share/fonts/TTF/
bash-4.3# xset fp rehash
bash-4.3#
no error
culprit:
didn't cd into TTF dir
 
Old 08-19-2016, 12:23 PM   #11
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Strange, for me it also works from outside that directory...
 
Old 08-19-2016, 12:32 PM   #12
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,477
Blog Entries: 2

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Thumbs up

FWIW
i just don't know, but we solved it (again?)
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Uninstalling Slackware. freak1391 Slackware 6 08-13-2005 06:13 PM
Uninstalling Slackware 10.0 RayQ Slackware 15 07-13-2005 01:46 PM
Uninstalling slackware 9.1 mosherben Linux - Hardware 3 05-05-2004 10:54 AM
uninstalling linux font? rzee Linux - Newbie 1 02-14-2003 04:00 PM
Slackware 8 Uninstalling xcobra Linux - General 5 06-08-2002 07:06 AM

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

All times are GMT -5. The time now is 11:36 AM.

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