Bug 142156 - Font position changes to Subscript, if style isn't inherited from another style
Summary: Font position changes to Subscript, if style isn't inherited from another style
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles
  Show dependency treegraph
 
Reported: 2021-05-07 14:38 UTC by Georgy Litvinov
Modified: 2022-04-26 12:46 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
file with default text in subscript (12.62 KB, application/vnd.oasis.opendocument.text)
2021-05-07 14:38 UTC, Georgy Litvinov
Details
document with text in custom styles (10.21 KB, application/vnd.oasis.opendocument.text)
2021-05-23 12:39 UTC, Georgy Litvinov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Litvinov 2021-05-07 14:38:29 UTC
Created attachment 171750 [details]
file with default text in subscript

Bad default paragraph style setting in this document can't be changed from anywhere in LibreOffice Writer.
This document was previously exported from docx and came to me in odt.
Default paragraph style settings make default character style subscript.
I found that it is associated with settging style:text-position="sub 58%" set in style:text-properties inside <style:default-style style:family="paragraph">
located in styles.xml
It can't be changed in LibeOffice Writer.
Only way to fix this is to remove this option from styles.xml in unzipped odt file.
I thing there should be options to configure default settings from Writer to fix that kind of problems.

P.S. It can't be fixed by loading styles from regular file. To overwrite it with external styles file that file should have something like style:text-position="0% 100%"
Comment 1 Dieter 2021-05-23 10:13:51 UTC
(In reply to Georgy Litvinov from comment #0)
> Bad default paragraph style setting in this document can't be changed from
> anywhere in LibreOffice Writer.

You can change it the same way you can change every paragraph style
1. Press F11 => Styles tab in sidebar opens
2. Right click on paragraph style "Text Bod" => Modify
3. Change it the way you like (for example in position tab choose "normal" and in Indents & Spacing tab choose single line space.

=> NOTABUG (feel free to change it back to UNCONFIRMED wit a short reasoning, if you disagree)
Comment 2 Georgy Litvinov 2021-05-23 12:39:56 UTC
Created attachment 172270 [details]
document with text in custom styles
Comment 3 Georgy Litvinov 2021-05-23 12:42:18 UTC
(In reply to Dieter from comment #1)
> (In reply to Georgy Litvinov from comment #0)
> > Bad default paragraph style setting in this document can't be changed from
> > anywhere in LibreOffice Writer.
> 
> You can change it the same way you can change every paragraph style
> 1. Press F11 => Styles tab in sidebar opens
> 2. Right click on paragraph style "Text Bod" => Modify
> 3. Change it the way you like (for example in position tab choose "normal"
> and in Indents & Spacing tab choose single line space.
> 
> => NOTABUG (feel free to change it back to UNCONFIRMED wit a short
> reasoning, if you disagree)

Hi, Dieter
The workaround you proposed doesn't solve the bug, it only paritally hides the problem by overriding these settings,not changes them.
After going through the steps you described try loading text from new attached file "document with text in custom styles". It has three paragraph with custom style names. After importing all imported text will be in subscript.
Comment 4 Georgy Litvinov 2021-05-23 12:53:54 UTC
Another example. Just create new paragraph style in the same document. Not inherit settings in new style from Text Body. ( In style settings on Organizer tab "Inherit from" should be None. This style will be in subscript too.
Comment 5 Dieter 2021-05-24 15:46:58 UTC
(In reply to Georgy Litvinov from comment #4)
> Another example. Just create new paragraph style in the same document. Not
> inherit settings in new style from Text Body. ( In style settings on
> Organizer tab "Inherit from" should be None. This style will be in subscript
> too.

I can't confirm this and also not the behaviour you describe in comment 3. There might be some individual settings in your user profile. Could you please retest in SafeMode (Help => Restart in SafeMode)?
=> NEEDINFO
Comment 6 Georgy Litvinov 2021-05-24 16:34:56 UTC
(In reply to Dieter from comment #5)
> (In reply to Georgy Litvinov from comment #4)
> > Another example. Just create new paragraph style in the same document. Not
> > inherit settings in new style from Text Body. ( In style settings on
> > Organizer tab "Inherit from" should be None. This style will be in subscript
> > too.
> 
> I can't confirm this and also not the behaviour you describe in comment 3.
> There might be some individual settings in your user profile. Could you
> please retest in SafeMode (Help => Restart in SafeMode)?
> => NEEDINFO

I retested it and recorded it https://www.youtube.com/watch?v=dLcNrhRbf2I
The instruction doesn't change default styles, it only changes text body style. 
Every new paragraph style in the document will be in subscript.
Comment 7 Dieter 2021-05-26 19:09:42 UTC
(In reply to Georgy Litvinov from comment #6)
> I retested it and recorded it https://www.youtube.com/watch?v=dLcNrhRbf2I
> The instruction doesn't change default styles, it only changes text body
> style. 
> Every new paragraph style in the document will be in subscript.

Thanks for the video. I could reproduce the steps. For me the problem is, that as soon as you create a new paragraph style and set "Inherit from" to none, font position changes to subscript. So a workaround would be to set "Inherit from" to a certain style. Unfortunately I don't know how the style is defined, if inherit is "none". So I would call this a bug. Does this cover your problem? So bug titel would be something like "Font position changes to Subscript, if style isn't inherited from another style" (sorry, my English isn't perfect)
Comment 8 Buovjaga 2022-04-26 11:40:40 UTC
I can reproduce

1. Open attachment 171750 [details]
2. Insert - Text from file
3. Select attachment 172270 [details]

Now you see the inserted text has inherited the subscript property from the Text Body style that is present in attachment 171750 [details] even though the styles in attachment 172270 [details] inherit from none.

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 37613bffe4621c444e5a34678bafb2c3a875263d
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 26 April 2022