LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   uninstalling a font in Slackware (https://www.linuxquestions.org/questions/slackware-14/uninstalling-a-font-in-slackware-845679/)

Cultist 11-21-2010 03:44 PM

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

allend 11-21-2010 04:36 PM

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'.

Cultist 11-27-2010 03:58 PM

I did that, but the problem still happens. Is there a different package for Oriya, maybe?

Cultist 11-27-2010 04:17 PM

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

SCerovec 07-25-2016 06:54 AM

[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?)

dugan 07-25-2016 01:21 PM

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.

414N 08-16-2016 06:41 AM

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.

SCerovec 08-18-2016 06:02 PM

Quote:

Originally Posted by 414N (Post 5591552)
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?

414N 08-19-2016 03:38 AM

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


SCerovec 08-19-2016 10:39 AM

Code:

bash-4.3# cd /usr/share/fonts/TTF/
bash-4.3# xset fp rehash
bash-4.3#

no error :hattip:
culprit:
didn't cd into TTF dir :banghead:

414N 08-19-2016 12:23 PM

Strange, for me it also works from outside that directory...

SCerovec 08-19-2016 12:32 PM

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


All times are GMT -5. The time now is 02:15 PM.