Bug 163043 - Italic Arabic / Persian text is garbled with some fonts
Summary: Italic Arabic / Persian text is garbled with some fonts
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: Font-Rendering
  Show dependency treegraph
 
Reported: 2024-09-19 09:58 UTC by Hossein
Modified: 2025-11-12 18:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Italic text with "B Nazanin" font (5.03 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-09-19 10:00 UTC, Hossein
Details
Screenshot from Writer (7.68 KB, image/png)
2025-11-11 21:55 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-09-19 09:58:53 UTC
Description:
Italic Arabic/Persian text is garbled with some fonts like "B Nazanin". This problem does not happen with each and every font.

Steps to Reproduce:
1. Open attachment

Actual Results:
Italic text in the attachment is garbled. If you choose the text and make it a normal text, the problem goes away. "B Nazanin" font is used in the document.

Expected Results:
Italic text should be rendered correctly, with italic style applied to it. One can make it normal text to see what it should look like.

Reproducible: Always


User Profile Reset: No

Additional Info:
Reproducible with the latest LO 25.2 dev master:
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 42f8b7ab7f76676987e5b3aabedffcc3466bcaed
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Not reproducible with LO 24.2:
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Hossein 2024-09-19 10:00:12 UTC
Created attachment 196538 [details]
Italic text with "B Nazanin" font
Comment 2 Jonathan Clark 2024-09-27 22:48:51 UTC
I couldn't reproduce this issue on Linux.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f7fbf6504fd6190187f6e4d092af880ba8c7bf6a
CPU threads: 32; OS: Linux 6.8; UI render: Skia/Vulkan; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Hossein 2024-10-01 10:27:49 UTC
Ah, unfortunately the problem is not reproducible in this example after save / reload.
I will try to reproduce the problem again.
Comment 4 QA Administrators 2024-12-04 03:12:13 UTC Comment hidden (obsolete)
Comment 5 Hossein 2025-11-11 21:55:05 UTC
Created attachment 203877 [details]
Screenshot from Writer

The bug is reproducible for me with LO 25.8 stable on Windows:

Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 20; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

The problem is only visible on display, and not in the PDF output. If you press Ctrl+a then Ctrl+i, the text becomes visible, and then if you press Ctrl+i again, the text becomes garbled again.

Please not that "B Nazanin" comes in two files: Normal (BNAZANIN.TTF) and bold (BNAZANB.TTF), and there is no italic ttf.

B Nazanin font, used in the document can be downloaded from here:
https://bornaray.com/Content/downloads/fonts/BNAZANIN.rar
Comment 6 Buovjaga 2025-11-12 10:15:40 UTC
(In reply to Hossein from comment #5)
> Please not that "B Nazanin" comes in two files: Normal (BNAZANIN.TTF) and
> bold (BNAZANB.TTF), and there is no italic ttf.
> 
> B Nazanin font, used in the document can be downloaded from here:
> https://bornaray.com/Content/downloads/fonts/BNAZANIN.rar

On Windows 11, when trying to open any of the TTFs, it says it's not a valid font file.
Comment 7 Hossein 2025-11-12 16:14:27 UTC
(In reply to Buovjaga from comment #6)
> (In reply to Hossein from comment #5)
> > Please not that "B Nazanin" comes in two files: Normal (BNAZANIN.TTF) and
> > bold (BNAZANB.TTF), and there is no italic ttf.
> > 
> > B Nazanin font, used in the document can be downloaded from here:
> > https://bornaray.com/Content/downloads/fonts/BNAZANIN.rar
> 
> On Windows 11, when trying to open any of the TTFs, it says it's not a valid
> font file.
Have you extracted the 91 KB RAR file correctly? I could open the TTF files successfully on both Windows 11 and Linux. They are TTF files with .TTF extension.

This is an alternative ZIP download:
https://dl.fontchi.com/fonts/b-series/Bnazanin.zip
Comment 8 Buovjaga 2025-11-12 18:36:39 UTC
(In reply to Hossein from comment #7)
> (In reply to Buovjaga from comment #6)
> > (In reply to Hossein from comment #5)
> > > Please not that "B Nazanin" comes in two files: Normal (BNAZANIN.TTF) and
> > > bold (BNAZANB.TTF), and there is no italic ttf.
> > > 
> > > B Nazanin font, used in the document can be downloaded from here:
> > > https://bornaray.com/Content/downloads/fonts/BNAZANIN.rar
> > 
> > On Windows 11, when trying to open any of the TTFs, it says it's not a valid
> > font file.
> Have you extracted the 91 KB RAR file correctly? I could open the TTF files
> successfully on both Windows 11 and Linux. They are TTF files with .TTF
> extension.
> 
> This is an alternative ZIP download:
> https://dl.fontchi.com/fonts/b-series/Bnazanin.zip

Ah, the failure was only with Windows font viewer, but right-clicking and selecting Install works anyway.

But I don't see the issue.

Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded