Bug 150406 - Style Inspector shows with Default Paragraph Style with Times of New Roman, but actual font is David (without DF accordantly to Style Inspector)
Summary: Style Inspector shows with Default Paragraph Style with Times of New Roman, b...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-14 12:43 UTC by Telesto
Modified: 2022-08-14 19:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file (28.50 KB, application/msword)
2022-08-14 12:43 UTC, Telesto
Details
Example file B (13.00 KB, application/vnd.oasis.opendocument.text)
2022-08-14 19:48 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-08-14 12:43:36 UTC
Description:
Style Inspector shows with Default Paragraph Style with Times of New Roman, but actual font is David (without DF accordantly to Style Inspector)

Steps to Reproduce:
1. Open the attached file
2. Place the cursor between yellow/green highlighting
3. Sidebar -> Style Inspector -> Notice only Default  Paragraph Style
4. Move cursor to the left or right (Font Box in toolbar says David). Style Inspector doesn't change

Actual Results:
A) Style inspector doesn't show font.
B) Space being Times of New Roman, Document Davidf 

Expected Results:
There is something wrong here


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 86b2bfd34a4f07c54f03c8c8dfe48e0810834628
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2022-08-14 12:43:58 UTC
Created attachment 181767 [details]
Example file
Comment 2 Telesto 2022-08-14 12:45:23 UTC
Again a snipped of your book. This surely explains not of formatting issues your are experiencing (including numbering).

You might have reported something already, didn't check..
Comment 3 Eyal Rozenberg 2022-08-14 17:08:24 UTC
Telesto, I know you're a very experienced contributor, but please try to make it easier on us, other QA people... specifically, please: 

* make the bug depend on relevant meta-bugs (e.g. RTL-CTL)
* avoid ambiguous grammar ("AAA shows with BBB with CCC" - double "with"; what does each "with" relate to?)
* be more specific ("between yellow/green highlighting" - where in between? and - there are several areas with this highlighting, so where exactly should we place the cursor?)
* don't mix  up expected/actual results with the reproduction instructions themselves
* specify the actual and expected results, don't just skip these fields or say something oblique


Anyway, can't reproduce. If I place the character between the first pair of yellow-and-green highlit characters (ת and then א), near the yellow one (א), I notice that there's DF: "Char Font Name Complex: Times New Roman".

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 5c68399e6bea3aa18477487400f8bb143d6ed84e
CPU threads: 4; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded

However, I will say that MSO-imported documents tend to exhibit issues - which may be bugs or may be mis-features, of the font (and language) supposedly changing frequently, as though there are a bunch of spans in the text; and you end up needing to select swaths of text and remove their DF. And we can't set the language of a stretch of text in LO (see bug #148257). But that's only related to what you're seeing, I think.
Comment 4 Mike Kaganski 2022-08-14 17:18:41 UTC
If you only see TNR in the Style Inspector, it means you haven't enabled "Complex text layout" in Options->Language Settings->Languages.
Comment 5 Eyal Rozenberg 2022-08-14 17:28:37 UTC
(In reply to Mike Kaganski from comment #4)
> If you only see TNR in the Style Inspector, it means you haven't enabled
> "Complex text layout" in Options->Language Settings->Languages.

But why would not enabling CTL cause the font family DF to be missing from the style inspector? Shouldn't it be visible anyway? :-(
Comment 6 Mike Kaganski 2022-08-14 17:41:26 UTC
(In reply to Eyal Rozenberg from comment #5)

Because that was when UX decided back in the day, trying to follow what is shown in the UI:

* proposed in https://gerrit.libreoffice.org/c/core/+/97263/21#message-f42e425380dd3279da0853767b5b2c46e57939ff;
* implemented in https://gerrit.libreoffice.org/c/core/+/97530;
* implementation fixed in tdf#137886.
Comment 7 Eyal Rozenberg 2022-08-14 18:22:37 UTC
(In reply to Mike Kaganski from comment #6)
> (In reply to Eyal Rozenberg from comment #5)
> 
> Because that was when UX decided back in the day

Ah, now I get it: "Char Font Name Complex" means the font family name for CTL languages. Was thrown off by the fact that it was TNR.
Comment 8 Telesto 2022-08-14 19:48:01 UTC
Created attachment 181772 [details]
Example file B

Before I start spamming the bug tracker.. another attempt to illustrate the issue

1. Open Writer
2. Tools -> Options -> Language settings -> Languages -> Make sure complex text layout being enabled set for Hebrew [not sure if it matters, but well)
3. Open the attached file
4. Open Sidebar -> Style Inspector
5. Walk through the file with arrows.. Nothing about Liberation Serif (OK)
6. Save the file to DOC
7. File -> Reload
8. Walk through the file with arrows.. Notice Character Direct Formatting appearing regularly in the area between words