LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2022, 05:34 PM   #1
anon298
Member
 
Registered: Aug 2016
Posts: 338
Blog Entries: 1

Rep: Reputation: 12
Libre Office Writer: Removing/Replacing Font List


2 Questions:

Has anyone developed a program to remove all foreign language fonts from the LibreOffice Writer program? Before you ask, yes, I have already availed myself of the "fonts removal app" included in the Do These Things First list, but far too many useless (to me) fonts remain.

Has anyone developed a program to replace all existing fonts with a customized list of the standard, most used font types?

Thanks, guys.

Last edited by anon298; 07-23-2022 at 05:53 PM.
 
Old 07-24-2022, 07:58 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I got them.

I deleted obviously foreign sounding fonts by packages. Then I went through a few cycles of
  1. Opening Libreoffice and noting terms common to foreign fonts - Noto, Lohit & Umpush(?) were some. Drop to runlevel 3.
  2. Grepping my installed packages for those terms, and removing the offending packages.
  3. Running 'sudo mkfontdir && sudo mkfontscale'
  4. Restarting X, and rechecking Libreoffice.

I'm using slackware, where package lists are in plain text when installed. I'm also set for runlevel 3, so I type startx to get X going. You make the necessary adjustments for your distro.

Fonts are often hidden behind strange names. Hangul is chinese fonts; pinyin is a sort of half way house between chinese hieroglyphics/characters/?? and English for folks learning chinese. There's also Korean, & Japanese characters, alike but different. There's at least 4 distinct chinese dialects, and over half a dozen Arabic ones. Then Indian, Greek, Cyrillic… There's a lot to be catered for.
 
Old 07-24-2022, 08:42 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
It depends on where the fonts come from.

I use Apache OpenOffice rather than LibreOffice and that comes with a bundle of fonts I didn't need. I removed all except opensymbol, the default for the mathematical formula editor.

Then there are the fonts that come with the distro. To avoid getting things back again if they are revised, you really need to use the package manager and remove the package that provided them. In Mint, that should be OK. When I installed Debian on an old laptop (the only distro that runs on it!) I found I'd been given complete support for Thai and trying to remove it with the package manager caused a hissy fit. You may also find that some-one has marked a particular font package as a dependency of something important, even though it isn't, so you can't remove it. If you are really fussy (like me) you manually delete the font files and resign yourself to them coming back when you upgrade to the next version of the distro.

In other words, if you are a perfectionist about fonts there's work to do. I don't know of any program to simplify the job and if I did I wouldn't risk using it — too much could go wrong.
 
Old 07-24-2022, 09:06 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
LibreOffice can be built without the bundled fonts. Specify --without-fonts to autogen.sh.
Ed
 
Old 07-24-2022, 11:36 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I neglected to mention that I also did a search for odd interesting or otherwise attractive fonts of the TTF or OTF variety and made a package of those for my own use which I can just dump in. Slackware has no dependency checking or keys, they are just common or garden archives. I have yet to hear of one corrupt package being distributed.
 
Old 07-24-2022, 03:18 PM   #6
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
you can just use ~/.fonts

Code:
mkdir ~/.fonts
krusader ~/.fonts
copy some ttf into it.

here some freefonts for play.
https://gitlab.com/openbsd98324/freefonts/

Close libre office, restart it, find and play with new TTF / Fonts.
 
Old 07-25-2022, 11:49 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The problem was not how to add fonts but how to remove them. It can be really annoying with some distros when you're trying to select a font in Writer and you have to scroll down an interminable list.
 
Old 07-25-2022, 12:56 PM   #8
openbsd98324
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 5
Quote:
Originally Posted by DavidMcCann View Post
The problem was not how to add fonts but how to remove them. It can be really annoying with some distros when you're trying to select a font in Writer and you have to scroll down an interminable list.
Code:
rm -rf ~/.fonts/* <-- danger
the fonts are located into /usr/share...
 
Old 07-27-2022, 11:42 AM   #9
anon298
Member
 
Registered: Aug 2016
Posts: 338

Original Poster
Blog Entries: 1

Rep: Reputation: 12
Quote:
Originally Posted by EdGr View Post
LibreOffice can be built without the bundled fonts. Specify --without-fonts to autogen.sh.
Ed
So, the sudo command would be: sudo autogen.sh --without fonts
 
Old 07-27-2022, 12:19 PM   #10
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Quote:
Originally Posted by FenderGuy View Post
So, the sudo command would be: sudo autogen.sh --without fonts
Generic instructions are here.

Running "apt-get source libreoffice" and "apt-get build-deps libreoffice" should retrieve the necessary files.

You will need to find out the specific build instructions for Mint. Building LibreOffice is relatively straightforward but time-consuming (possibly a few hours).
Ed
 
Old 07-28-2022, 10:31 AM   #11
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
And supposing, after waiting for several hours to get a customised LibreOffice, the OP discovers that the fonts are still there — actually provided by Mint? Compiling such a large program on the off-chance that it may solve a problem seems like overkill. I never understood why some distros give you endless fonts for Arabic or Indian languages rather than making them available as optional packages.
 
Old 07-28-2022, 11:23 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I'm not a Debian guy, but maybe something like
Code:
sudo apt --list-installed |grep -i font
might show up any installed fonts? There's also the 75dpi & 100dpi fonts that basically nothing uses any more.
 
Old 07-28-2022, 11:49 AM   #13
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by business_kid View Post
I'm not a Debian guy, but maybe something like
Code:
sudo apt --list-installed |grep -i font
might show up any installed fonts? There's also the 75dpi & 100dpi fonts that basically nothing uses any more.
Dunno where you got that from; the corrected version is:
Code:
apt list --installed '*font*'
 
Old 07-28-2022, 08:52 PM   #14
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
EDIT:- Wrong thread...sorry!

Last edited by Mike_Walsh; 07-28-2022 at 08:56 PM.
 
  


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
[SOLVED] Libre Office Writer change font size poncedeleon Linux - Software 5 08-02-2021 02:45 PM
Libre Office Writer - Form Text Box Font Size in Exported PDF Problem GNewbie Linux - Software 5 02-09-2018 11:26 PM
Libre Office Writer Auto-correct list can no longer be replaced with custom one. Nityanandi Linux - Software 1 09-19-2015 01:45 PM
libre office writer table 4.2.7.2 build 2 hilight text to change font or move & page 1sweetwater! Linux - Software 0 12-05-2014 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 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