[Libreoffice-bugs] [Bug 118902] New: RTF import: wrong font for Hebrew text

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 23 06:04:43 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118902

            Bug ID: 118902
           Summary: RTF import: wrong font for Hebrew text
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisectRequest, filter:rtf
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com

Created attachment 143703
  --> https://bugs.documentfoundation.org/attachment.cgi?id=143703&action=edit
Wrong font for Hebrew text in RTF: minimal reproducer

In the attachment, the only defined font in the RTF is Times New Roman. It is
applied to all the text in the document, and Word shows all the text (both
Russian and Hebrew) using TNR. But when opened in LibreOffice, the Hebrew font
is shown using the font defined in Options→LibreOffice Writer→Basic Fonts
(CTL). Replacing \f1 in \pard with \loch\f1\hich\af1 fixes the problem, so
apparently LibreOffice does not treat \fN as setting font for all language
variants, just for Western languages, despite "Associated Character Properties"
chapter in [1] tells:

> Although RTF defines a broad variety of associated character properties,
> any implementation may choose not to implement a particular associated
> character property and share the property between the Latin and Arabic
> fonts

which implies that associated character properties are optional, and in the
absence of those, standard properties (like \fN) should be used for all
language variants.

Tested with Version: 6.1.0.2 (x64)
Build ID: b3972dcf1284967612d5ee04fea9d15bcf0cc106
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: ru-RU (ru_RU); Calc: CL

Said to be OK in OOo and AOO; suspect regression.

[1] Rich Text Format (RTF) Specification Version 1.9.1
https://www.microsoft.com/en-us/download/details.aspx?id=10725

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180723/8bf86df9/attachment.html>


More information about the Libreoffice-bugs mailing list