Installing Persian fonts on Ubuntu and using them in LibreOffice

بسیاری از کسانی که از ویندوز به اوبونتو مهاجرت میکنند، با یک سوال ساده ولی حیاتی مواجه میشوند: «چطور میتوانم فونتهای فارسی محبوبم را روی لینوکس داشته باشم و در LibreOffice استفاده کنم؟» در این مقاله، تجربه شخصی ما در نصب و فعالسازی فونتهای سری B روی اوبونتو را به صورت مرحله به مرحله توضیح میدهیم، به طوری که هم برای کاربران تازهکار و هم حرفهای مفید باشد.
Solution: Select and download the font
فونتهای سری B شامل فونتهای معروفی مثل B Nazanin، B Mitra و B Lotus هستند که برای متون فارسی رسمی و پروژههای اداری بسیار محبوباند. برای شروع، میتوانید این فونتها را از منابع معتبر مثل سایت Fontiran یا بستههای GitHub دانلود کنید.
Step 2: Copy the fonts to the appropriate path
To make the fonts available to all programs and you can use it in LibreOffice as well. You should copy it to ~/.local/share/fonts. Also, in order to have a proper category of fonts, you can put it in the B Series folder. In this case, all B series fonts are separated in the programs in an orderly manner.
sudo mkdir /usr/share/fonts/BSeries
sudo cp ~/.fonts/BSeries/*.ttf /usr/share/fonts/BSeries
Step 3: Refresh the fonts cache
To make the system recognize the fonts, use the following command:
fc-cache -fv
Finally
Open and close the programs you want once and then you can easily choose fonts and edit your text.
