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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs