Bug 68808 - EDITING: Font name combobox shows wrong font for fields when paragraph is RTL
Summary: EDITING: Font name combobox shows wrong font for fields when paragraph is RTL
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL Language-Detection Fonts-Name-Combobox
  Show dependency treegraph
 
Reported: 2013-09-01 10:19 UTC by Maxim Monastirsky
Modified: 2019-09-18 08:42 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Faulty font name display (23.86 KB, image/png)
2015-05-22 10:44 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Monastirsky 2013-09-01 10:19:56 UTC
Font name combobox shows wrong font for fields when paragraph directionality set to RTL.

Steps to reproduce:
1) Open Writer and insert some field (like page number).
2) Make sure that the paragraph directionality set to RTL.
3) As you can see, the font that used to display the field is not the same font as displayed in the font combobox. If you'll switch to LTR, you'll see that the field displayed with the right font, but switching back to RTL reverts that.

Extra steps:
4) Select the field and try to change the font name.
5) As you can see, the font combobox shows the new font name, while the field itself still displayed with another font.
6) If you change the directionality of the field to LTR, you'll see the font change, but if you switch back to RTL you won't.

Workaround:
Open Character dialog (Format->Character...) and set 'CTL Font'.

It's a bug, since even if a field should be treated as CTL text when directionality = RTL, the font combobox should expose the CTL font as well.

Affected Versions:
Reproducible with OOo 3.3 and with all LO versions since then, including master ( 4.2.0.0.alpha0+ Build ID: d6b4644da2c74500aa5ddfe69c36fc1f987bce0d TinderBox: Win-x86@6-debug, Branch:master, Time: 2013-08-31_22:06:59).
Comment 1 Lior Kaplan 2013-09-15 21:16:08 UTC
There's a easier way to explain the problem - on fields in RTL paragraphs, the font box show the LTR font instead of the RTL font. The fields' font change according to the paragraph directionality.
Comment 2 John 2015-05-22 10:44:58 UTC
Created attachment 115814 [details]
Faulty font name display
Comment 3 John 2015-05-22 10:52:54 UTC
Comment on attachment 115814 [details]
Faulty font name display

This may be a related issue. 

In LO 4.3.7 the 'Free 3 of 9' barcode font appears correctly in the font selection list.

In LO 4.4.3 the same font appears with the name 'New' as the attached screen-shot shows. This is within a standard Western LTR paragraph

I hope that this helps. Best wishes

John
Comment 4 QA Administrators 2016-09-20 09:41:33 UTC Comment hidden (obsolete)
Comment 5 Omer Zak 2017-11-03 19:46:31 UTC
Works for me at:

Version: 5.4.2.2.0+
Build ID: 1:5.4.2-3~bpo9+1
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.utf8); Calc: group

OS: Debian 64bit Stretch (Debian 9.2, with some backported packages)
Comment 6 Eyal Rozenberg 2017-11-04 07:57:51 UTC
With LO 5.3.12 on Lubuntu 17.04, I am:

* not seeing bug described in item 3 of the instructions
* seeing the problem in item 6
* Am seeing the problem described in item 5 - but am also seeing it in LTR

So reopening for now, but I think this should be unpacked into multiple bugs, the last of which not even
Comment 7 Xisco Faulí 2017-11-04 09:08:08 UTC
(In reply to Eyal Rozenberg from comment #6)
> With LO 5.3.12 on Lubuntu 17.04, I am:
> 
> * not seeing bug described in item 3 of the instructions
> * seeing the problem in item 6
> * Am seeing the problem described in item 5 - but am also seeing it in LTR
> 
> So reopening for now, but I think this should be unpacked into multiple
> bugs, the last of which not even

It seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
Comment 8 Yousuf Philips (jay) (retired) 2017-11-05 12:15:44 UTC
So in master in a RTL paragraph with RTL text, it will show Liberation Serif when the cursor is after the field character, though the field is not rendered in that font, so this is a problem. While if the only thing in the RTL paragraph was the field, then it will show Liberation Serif when the cursor is before or after it, though the field is rendered with the CTL font.

Version: 6.0.0.0.alpha1+
Build ID: 6070dec9ca9a15587a2aece81f9ae1ab5ac0f8c4
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 9 Eyal Rozenberg 2018-09-17 17:28:40 UTC
Bug still manifests with:

Version: 6.1.1.2
Build ID: 5d19a1bfa650b796764388cd8b33a5af1f5baa1b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: en-GB (en_GB.UTF-8); Calc: group threaded
Comment 10 QA Administrators 2019-09-18 02:52:34 UTC Comment hidden (obsolete)
Comment 11 John 2019-09-18 08:42:18 UTC
Re Comment 3.

Bug no longer found in :-
Version: 6.2.6.2 Build ID: 20(Build:2) (openSUSE repositories)

Thanks

John