Bug 150403 - Inconsistency in dynamically applying font substitutions
Summary: Inconsistency in dynamically applying font substitutions
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Substitution Hebrew
  Show dependency treegraph
 
Reported: 2022-08-13 21:57 UTC by Eyal Rozenberg
Modified: 2023-03-07 17:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-08-13 21:57:29 UTC
Reproduction instructions:

1. Make sure your system doesn't have a font substitution for the "David" font, nor does it have it installed, nor does it use David CLM as the backup. Ditto for "Miriam" and Miriam CLM.
2. Open attachment 181658 [details]
3. Switch to multi-page view, have at least 4 full pages fit on a single row (in my window it's another 4 pages that fit half-height or so)
4. Choose Tools | Options on the menu
5. In the options dialog, navigate to LibreOffice | Fonts
6. Add font substitution from David to David CLM and Miriam to Miriam CLM
7. Mark the two substitutions as "Always"
8. Press apply
9. Close the dialog

Expected result: Either all of the body text - which is in David font - switches from the previous fallback to David CLM, or none of it does, awaiting a reopen of the document or a restart of LO.

Actual Result: Some of the paragraphs switch to using the substitute, some don't. When mouse=scrolling up and down some, getting the first row of page out of view, then going back up, all paragraphs have switched (I think).
Comment 1 Dieter 2022-08-29 06:59:35 UTC
(In reply to Eyal Rozenberg from comment #0)
> 6. Add font substitution from David to David CLM and Miriam to Miriam CLM

Not possible, because I don't see those fonts aín font dropdown or replace with dropdown

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4c96abd81460977d413d4d28e891bbbac5769ede
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 2 Eyal Rozenberg 2022-08-29 07:37:59 UTC
(In reply to Dieter from comment #1)
> Not possible, because I don't see those fonts aín font dropdown or replace
> with dropdown

Which fonts don't you see?

David CLM at least is bundled with LO, so it should be there. Miriam CLM I'm not entirely sure. The Culmus fonts can be downloaded from here:

https://culmus.sourceforge.io/download.html
Comment 3 Dieter 2022-12-04 16:42:27 UTC
Sorry for late reply. Perhaps I've misunderstood your first step: "1. Make sure your system doesn't have a font substitution for the "David" font, nor does it have it installed" I understand it, that David font is not installed (same for Miriam and Miriam CLM). So I won't expect to see it in dropdown list. So could you please precise your steps? Should I install those fonts before step 6?
Comment 4 Eyal Rozenberg 2022-12-04 19:15:38 UTC
(In reply to Dieter from comment #3)
> Sorry for late reply. Perhaps I've misunderstood your first step: "1. Make
> sure your system doesn't have a font substitution for the "David" font, nor
> does it have it installed"

I wasn't specific enough there. I should have written "make sure neither LibreOffice, nor anything else on your system, has a font substitution configured for the 'David' font; and that the David font is not installed on your system."

> I understand it, that David font is not installed
> (same for Miriam and Miriam CLM). So I won't expect to see it in dropdown
> list. 

Yes, that's right.

> So could you please precise your steps? Should I install those fonts
> before step 6?

No, create a substitution, i.e. tell LibreOffice to use "David CLM" whenever it sees "David" in a document.
Comment 5 Dieter 2022-12-07 08:12:25 UTC
Eyal, I'm sorry, but I can't assess, if I test the feature in a correct way, because nothing happens at all (in any document with any substitution). So I'm afraid, I can't help. But I've found bug 146291, that is at least related to your report.
Comment 6 Mike Kaganski 2022-12-07 08:41:49 UTC
https://wiki.documentfoundation.org/Fonts explains that *both* David CLM and Miriam CLM are bundled since LO 6(.?).

Just to clarify a bit: the step 1 should be:

1.1. Make sure that fonts "David" and "Miriam" are NOT installed;
1.2. Make sure that fonts "David CLM" and "Miriam CLM" are INSTALLED (automatically true for 6.X);
1.3. Make sure that when you use "David" explicitly, it is not substituted by "David CLM" (the trickiest piece: not only one needs to make sure they have no custom font substitution rules, but also do something in case this happens automagically ... ?), and the same for "Miriam" -> "Miriam CLM" pair. One needs to know how at least the "CLM" ones look, to see if they are not used ...

Anyway, this looks like a matter of forcing a re-layout after font substitution happens.
Comment 7 Mike Kaganski 2022-12-07 08:47:40 UTC
Sorry, I should have added that I couldn't understand if I see the problem or not on my 7.4.3.2 on Windows. It looked as if it changed it all immediately, and following scroll didn't change it more ... possibly one needs to know the exact spot, and know how it *must* show correctly.

Also I tried to have a "wrong" replacement initially (both to TNR), to ensure 1.3 from my steps; and then replace them with the correct ones. But that, again, seem to change it all immediately.
Comment 8 Buovjaga 2023-03-07 09:46:57 UTC
Eyal: maybe a screen recording would help clarify the wrong result here.
Comment 9 Eyal Rozenberg 2023-03-07 17:22:42 UTC
(In reply to Buovjaga from comment #8)
> Eyal: maybe a screen recording would help clarify the wrong result here.

I can no longer reproduce, so this can be closed. I am seeing another issue though related to substitution, but that would be a different bug.