Libreoffice: fonts gone - styles changed - language randomized

Something strange happened suddenly in libreoffice.
Laptop was new two weeks ago. Installed with manjaro xfce minimal on usb.
Libreoffice was installed with its dependencies. No font packages explicitly installed.
I installed Norwegian dictionary, using the tools menu in Writer. No other dictionaries. System language is english.

Here’s the chain of events:
I created a new document in Writer, and saved. Everything looked normal.
Some days later I open that document, made some changes, save as new name. Still everything looked normal. Times New Roman was the font selected as default when I created the document.

Then I press [Ctrl]+[N] to create a new document… then all buttons on the toolbars disappeared for 20 seconds. Then the buttons came back and a new window with a blank document showed up.

In this new document lots of fonts are gone. Dejavu Sans has become the font of all styles.
Since then, any new document, in Writer or Calc has got Dejavu as default font. Lots of the fonts that was in the list when I created the first document are no longer there.

The styles looks strange in new documents. In calc, unless editing the layout, the top of every tall letter (k, l, f… all uppercase and numbers) is clipped in the top.

Everything just looks strange in new documents.

And there is a very strange language behavior. The languages available to select should be norwegian and english. But norwegian in gone from the list, instead an other random language shows up on the list. Which language this is changes frequently. I’ve seen Danish, French, Farsi, some I’ve never heard of, and some can’t read the name of. There is always two languages on the list to select: English and one of the random.

In the document created before this happened, everything looks normal, except for the font list. The fonts used in the document looks as they should. But they are missing from the list of available fonts.
But the random language problem is present here as well.

To create a new document with some decent styles and fonts, my current workaround is to open the document I created last week, save as, delete all content except for one word of each font I’d like to make use of. Then I have a new blank document to start with. As the fonts to use cannot be selected from the menu, I’ll have to use clone formating tool to copy font from the words I kept from the original document.

It did not help to delete the folder
~/.config/libreoffice/

It did not help to reinstall libreoffice.

What else could I try?

I don’t know about XFCE but when LO is updated in Plasma I always lose my icon theme. I change that to Breeze (Dark) and everything is back to normal. The only issue I have with fonts, is that there are too many of them.

That seems unusual, I also use KDE/Plasma, and I can honestly say that has never happened to me, and no I’m not using the default icon theme, I use Karasa jaga (SVG)

As I recall - libreoffice is based on Qt framework and kvantum5, kvantum6, qt5ct and qt6ct is often used in an attempt to create uniform look and feel between GTK and Qt frameworks.

Without any option to reproduce - I suggest you look at the various places where theming is applied.

With LibreOffice you even have a styling option in the Preferences dialog.

With so many different places to control look and feel - frustration is not an unknown phenomenae.

1 Like

It also might be, or might not be related to your locale settings. Ensure that is correct first:

I created a new user, logged in, and that user has the same issues.

Then at least we know it is not related to user profile.

How can I reset libreoffice system settings to default?

See

https://wiki.documentfoundation.org/UserProfile

Specifically:

Resolving corruption

That debug is aiming for repairing user profile.
As the first thing I did was to remove the user profile data, and the second thing was to create a new user, I’m quite sure this problem is not related to user profile.

I’m wondering if there are any settings common to all users - that are not removed/overwritten during a uninstall-reinstall - that could be causing this.

It is more likely that it is created programmatically when no profile is found.

I use LibreOffice - and do not recognize - nor am I able to reproduce.

 $ libreoffice --version
LibreOffice 24.2.5.2 420(Build:2)

Missing fonts is usually caused by font packages changed - you mentioned Times New Roman - this is a Windows font - not available on Linux - Liberation Serif should be a one-to-one sustitute

image

That is your chosen font which is too small for the row height.

According to the libreoffice troubleshooting page linked earlier - the previous default location wash ~/.local/libreoffice - perhaps you have remnants of old config

A single user profile must only ever be accessed by a single LibreOffice process. Internally, if a single user starts multiple LibreOffice processes that would all access the same user profile, only the first process does any actual work, like opening documents for editing, and the excess processes pass on their command line arguments to the first one for processing. Especially, one must not reuse a single user profile across multiple accounts on one computer, or across computers.

Also, different versions of LibreOffice can store different sorts of data in their respective user profiles. If a new version of LibreOffice does not yet find a user profile at the default location for that version, it looks for existing user profiles from old LibreOffice or OpenOffice.org versions at well-known locations and migrates any data it can continue to use to the new location. Strange effects might occur, if you explicitly request a LibreOffice version to reuse a user profile from another version.

However, most of the content of the user profile can be safely copied from a machine to another to duplicate the same configuration. Especially custom dictionaries, color palettes, shortcuts, toolbars, extensions…

Perhaps you had the fresh package earlier and now you have the still package?

That would account for missing languages as languages need to be installed separately.

Open Manjaro Settings Manager and click on Language Packs - if you are missing some the manager will offer to install them.

I installed still package, reinstalled still, and still have still. No change there.

LibreOffice 7.6.7.2 60(Build:2)

The PC is new. Hard drive was blank when installing. No new version of libreoffice still has been released since first install.

No language pack has been installed. Just norwegian dictionary. It is still there, and does the job if I open a document with the language set. It’s just that I frequently can’t select it from the menu, cause the menu shows random languages. (Norwegian shows up on the menu about one out of 5 times I open the menu, so it is possible to set, after some tries.)

Looks like I’m heading for switching from still to fresh…

Navigate to

→ Tools → Options → Languages and Locales

The Norwegian Menu items translated from english (after all, our language are quite similar :slight_smile: )

→ Verktøy → Muiligheter → Språk og Lokalisering

Though it is this in danish

→ Funktioner → Indstillinger → Sprog og lokalitetsindstillinger

Then set your preferences for LibreOffice - remember to set Default language (Standard språk for dokumenter)

Just a thought - It could be the translation files are not complete - which would cause it to display partly in Norwegian and partly English. (Language Teams - The Document Foundation Wiki)

The language pack is

  • libreoffice-fresh-nb
  • libreoffice-still-nb

Default user interface = Default english (USA) english USA being the only option)
Locale settings = Default english (USA)
Default currency = default USD

Default language for documents
western = Default english (Lots of choises available. Only English and Norwegian x2 has the [Ab] icon next to it

As stated before, I have NOT installed any language packs
Only added norwegian DICTIONARY

I put Norwegian Bokmål as default document language now. Seems like the document language menu is stable now - until I make an english paragraph. The norwegian bokmål has not jumped off the menu for several paragraphs, but other languages jumps in. So now the menu, rather than showing english + some random language, it shows english + norwegian bokmål + a random language. The random language is not always present.

At least thats what you can call improvement - being able to select the two installed languages.

For user interface you need to install a language pack - that is what they are for.

Norwegian - has two witten languages - bokmål and nynorsk

At the bottom of the language interface setup

  • there is check box Ignore system input languate

Try flipping the switch - see what happens

I don’t want any language pack. I do not want to change the language of the user interface. It is default english. It should stay that way.

The issue here is that:

  1. Lots of fonts disapared - causing all styles to change
  2. The document (spell check) language menu shows random languages that are not installed.

There are no issues related to user interface language

You don’t have to use a language pack that installed. But they are ne neccessary for certain things. For example, some languages have a lot of special characters, for example German. So you have to install the German language pack for those characters. At least the input codes from thee keyboard, as I have it. You also need to install the fonts for said language packs, they go together, as far as I know.

Then you need to make sure your default language is set and your Locale is setup correctly.

https://wiki.archlinux.org/title/Locale

https://wiki.archlinux.org/title/Locale#Setting_the_locale