Write Arabic in LibreOffice Without a Hassle: The Font Name Fix Extension

LibreOffice’s default font settings can create a frustrating experience when switching between Arabic and other languages. This article explains the “Font Name Fix” extension, a simple solution to ensure your chosen Arabic font stays put, improving your writing workflow.
The phrase 'ุงู„ู„ุบุฉ ุงู„ุนุฑุจูŠุฉ' (Arabic language) is displayed in bold, black lettering on a white background within a text document editor interface, featuring various tools and menus at the top and side.
LibreOffice Arabic – illustration

Last updated 1 year ago.

Writing Arabic in LibreOffice can be frustrating due to persistent font-switching issues, but a simple extension offers a permanent fix.

At first, it was quite difficult to write Arabic texts in LibreOffice. At the end of 2016, however, LibreOffice expanded language support. LibreOffice provides support for both Complex Text Layout (CTL) and Right to Left (RTL) layout languages (such as Urdu, Hebrew, and Arabic).

Today, I no longer have any difficulties when I switch between Arabic and English and German. For most of the time, I use templates. However, if you do not work with format templates and change fonts manually, you will have to contend with a strange and annoying behavior of LibreOffice.

A developer from Kuwait (Mejlad Alsubaie) wrote an extension that fixes this:

Font Name Fix (ุฅุตู„ุงุญ ุงุณู… ุงู„ุฎุท ุฃุซู†ุงุก ุงู„ูƒุชุงุจุฉ ููŠ ู„ูŠุจุฑูˆูุณ)

It fixes the name of the font while writing if the system language is different from the writing language.

Many may not even be aware of the problem. You take LibreOffice’s behavior for granted and just do a few more extra clicks to fix it manually. But once you understand where the problem lies, the extension makes life a little easier. So, let’s see what the problem is about.

The problem when switching languages in LibreOffice

If you switch to Arabic and then select a font for Arabic from the font dropdown, LibreOffice always switches back to the default font. Why is that? It is related to the settings.

In the settings of LibreOffice Writer, you can define the standard font for Western languages.

Screenshot LibreOffice Writer: settings - basic fonts
Screenshot LibreOffice Writer: settings – basic fonts

For languages such as Arabic, you can also set a default font. This can be set under the CTL options (complex text layout):

Screenshot LibreOffice Writer: settings - Complex Text Layout fonts
Screenshot LibreOffice Writer: settings – Complex Text Layout fonts

Once we set all this in the settings, everything works fine as long as we don’t change the font for Arabic.

Video illustrating the problem in LibreOffice when switching to Arabic

So far, so good. But what would happen if we change the font for the Arabic writing? As above, assuming that we have set Amiri as the default Arabic (CTL) font, LibreOffice will automatically switch back to Amiri. The following video shows this somewhat annoying behavior of LibreOffice:

So, you would have to mark the Arabic word again, select the font – so that the font is also adopted. However, as soon as you insert a paragraph, LibreOffice will switch back to the default font.

Why is that? In our example, the system/interface language is English. If we switch the interface to Arabic, the problem is gone – but only for Arabic. So, it always depends on the local language. As Mejlad Alsubaie, a developer from Kuwait, explained to me, the problem is that LibreOffice always uses the default settings that you set up in the preferences.

Let’s test it: I use Linux. If you have installed the LibreOffice Arabic language pack, just open the terminal, and you can easily start LibreOffice with the Arabic interface by using the following command:

$ LANG=ar_EG.UTF-8 libreoffice --writer

If we look at the settings now, the complex fonts (ุงู„ู†ุตูˆุต ุงู„ู…ุฑูƒู‘ุจุฉ) still have the same values. In our example, using the Amiri font for CTL (right-to-left text).

Screenshot of LibreOffice with Arabic interface - CTL settings
Screenshot of LibreOffice with Arabic interface – CTL settings

Video showing the expected behavior in LibreOffice when changing fonts

Now comes the interesting part: When we use Arabic as the interface and write in Arabic, everything is as expected. We choose a different font from the panel and start to write in Arabic. When we insert a paragraph, the font we just selected is retained and does not switch to the default font.

So, that’s precisely what we need in the English interface as well.

The solution: the Extension Font Name Fix

Mejlad Alsubaie, a developer from Kuwait who is the author of Mishkallo, has developed an extension that solves the problem. It can be downloaded for free and installed easily and quickly. It works on all operating systems (Windows, Mac, Linux).

Screenshot of LibreOffice website - extension Font Name Fix
Screenshot of LibreOffice website – extensions

Once you have installed the extension and restarted LibreOffice, you can also conveniently and quickly turn the extension on and off from the LibreOffice menu:

Extras -> Plugins -> Font Name Fix

If you know any other useful app, tool or extension, please let me know.


101b6c3aa4ea4fb181f8ef16e8a2bd03
Wanna cite this article?

DriรŸner, G. (2023, March 18). Write Arabic in LibreOffice Without a Hassle: The Font Name Fix Extension. Arabic for Nerds. https://arabic-for-nerds.com/tools/libreoffice-fix-font-arabic/

Published: March 18, 2023

Please check the citation before use, especially if your style guide has local requirements.

Publication ISSN: 3055-1730

Subscribe
Notify of

Join the discussion: Sign in with social media for instant commenting, or register with email (comments require approval):

guest

6 Comments
Nick Croft
10 months ago

Hi Gerald – I’ve been typing out an Egyptian High School Arabic Syllabus book from the 60s – in LibreOffice. I was given the 3 volume set in the 60s by my teacher. The print is getting a bit faded, and the paper is turning brown, so I’m preserving it by typing it out..

I find the period (.) quite troublesome. It’s the same typing Hebrew, something to do with RtoL I guess. Perhaps I haven’t done everthing I need to to get the right results in LibreOffice.
Incidentally I seem to have no trouble with the font names.

I’ve used latex/xelatex for absolute control over the results in the past, I’ll return to it now that I’m on a mission to preserve the textbooks.
Nick Croft.

Abdelrahman Hamdna Allah
Abdelrahman Hamdna Allah
1 year ago

Hi, thank you for all your support. I want to ask if the program support the Arabic user interface

Paul Harper
3 years ago

I know we are a minority. But some of us Linux Nerds would like to hear more about how Arabic for Nerds manages his workflow and what programs you use. I see Donovan Nagel from Mezzoguild is also a Linux user.

Last edited 3 years ago by Paul Harper
Previous Article
A man in a military uniform with epaulets and a large decorative hat is saluting. His attire includes various insignia, and he has a distinct hairstyle with glasses.

Maqsam: The Promising New Arabic Speech Recognition Tool For Dialects

Next Article
A close-up view of an open book page featuring text in both Arabic and English, focusing on definitions related to 'infection,' including terms like 'viral/bacterial infection' and 'source of infection.' The text is printed in brown on a textured light paper.

How the Oxford Arabic Dictionary Was Made: A Conversation with Tressy Arts

โžค DIDN'T FIND WHAT YOU ARE LOOKING FOR?

You may also like
Illustration of a large smartphone with Arabic letter 'ู‚' on the screen, a speaker emitting multicolored sound waves and chat bubbles, surrounded by diverse people in traditional Middle Eastern clothing using smartphones, set against a cityscape background.
Read More

How to Use Google Translate for Arabic Text Recognition (OCR)

Google Translate now significantly supports Arabic, especially with its powerful camera and voice translation features. You can use your phone's camera to instantly translate Arabic texts from images or speak directly into the app for real-time conversion, making it a valuable tool for travelers and Arabic language learners.
A pixelated portrait of a man wearing a hooded robe and glasses, set against a desert landscape with sand dunes and a clear blue sky.
Read More

JAIS: An In-Depth Review of the “Arabic ChatGPT”

Media calls Jais the "Arabic ChatGPT," a new AI trained with Arabic data. This article reviews Jais's practical performance on tasks like writing messages, correcting grammar, answering facts, and translating, revealing its current capabilities and limitations.
Colorful over-ear headphones with intricate floral patterns and the brand names EOS and Canon on the ear cups, surrounded by floating Arabic letters in blue, yellow, and pink against a light background.
Read More

This Tool Helps You to Understand Al Jazeera Better

Arabic news articles can be challenging due to speed and missing vowels. This guide explains Al-Jazeera's formerly available "listen to article" service, which helped students read faster by providing audio with highlighted text, improving media Arabic comprehension and pronunciation.
Choose a social network
Choose a social network
Choose a social network
Choose a social network