Bug 131833 - Character style generated from "Default style" does not honour the default in "Basic Fonts"
Summary: Character style generated from "Default style" does not honour the default in...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-02 20:20 UTC by R. Green
Modified: 2020-04-02 20:57 UTC (History)
0 users

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 R. Green 2020-04-02 20:20:46 UTC
Version: 6.4.1.2 (x64)
Build ID: 4d224e95b98b138af42a64d84056446d09082932
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

1. Make sure that "Options > Libre Office Writer > Basic fonts" is set to the default fonts (Times, Lib Mono, Times, Times, Times).
1. Create a new default writer document.
2. Generate Lorem ipsum text.
3. Select the last paragraph and change it to the "Text body" paragraph style. Open "Text Body" paragraph style and change font to Linux Libertine G (for example).
5. Keep the cursor on the "Text Body paragraph". In "Character styles", click on "Default style" and select "New style from selection". Give the new style a name and click OK.
5. Open the new character style dialogue and inspect the Font tab.

Expected result: The font should be Times New Roman as this is the default in "Options > Libre Office Writer > Basic fonts".
Actual result: The font is actually Linux Libertine G, the same as the paragraph.

Conclusion: When generating a new character style from "Default style", the font of the generated character style should be the same as the setting in "Options > Libre Office Writer > Basic fonts". However, at present the new character style seems to ignore this setting and adopts the font of the paragraph in which the cursor is located.

(Note: Another possible issue is that if you change the font of the paragraph style "Default Style", this also changes "Options > Libre Office Writer > Basic fonts". IMV, this is wrong and the default in "Basic fonts" should only be changable in "Options".)
Comment 1 Mike Kaganski 2020-04-02 20:57:56 UTC
(In reply to R. Green from comment #0)
> Expected result: The font should be Times New Roman as this is the default
> in "Options > Libre Office Writer > Basic fonts".
> Actual result: The font is actually Linux Libertine G, the same as the
> paragraph.
> 
> Conclusion: When generating a new character style from "Default style", the
> font of the generated character style should be the same as the setting in
> "Options > Libre Office Writer > Basic fonts".

This is wrong. Basic character style means "no character-level formatting; use whatever is defined on paragraph level". That is how it is defined, implemented, and correct.

The basic fonts options don't affect character styles, only default paragraph style.

Closing NOTABUG.