Heading Style Uses Incorrect Font Size

image


image

I modified the existing headings to use a different font, font color, font size, and spacing above/below.

About half the time when I select a heading (in this case, Heading 3), it changes the font color and spacing, but the font size stays at 11pt instead of going to 13pt. I’ve attached screenshots.

Any ideas?

Screenshots are generally useless, all the more when View>Formatting Marks is not enabled. Which is your technical context: OS name; LO version and save format?

Generally speaking, when style configuration is not honoured, suspect a character style in effect over the paragraph style, or uncancelled direct formatting. Difficult to tell without a sample file (we don’t even know how your two lines are styled).

Hello. Attached is a document that shows heading 2 with a font size of 11pt instead of 14 points. I’ve also attached the exported template file that is applied to new documents, which has the custom heading settings.

OS version is Windows 11 23H2. LO version is 28.8.4.2.

Thank you.

My Writer Template.ott (9.4 KB)
Untitled 1.odt (11.3 KB)

In addition to @ajlittoz comments which address the order in which formatting is applied, you might like to remember the key stroke Ctrl+M (Format > Clear Direct Formatting) which will remove direct formatting. You can create your own keyboard shortcut to apply No Character Style or use the icon on the Formatting (Styles) toolbar; click View > Toolbars > Formatting (Styles) to toggle visibility.


Your template has been created without understanding of style hierarchy. There are two paragraph styles that should not not appear in your documents but control how their child styles work. You only need to set the font in two places, not tens of places.

  • Default Paragraph Style, set the font for your main body of writing here. You have set it to Times New Roman. That will have set the font for everything except for headings
  • Heading, set the font here for all your headings. You have broken the inheritance by changing the font in Heading 1, 2 and 3. You can fix it by selecting the Font tab and clicking the button Reset to Parent. You can then set 16 pt and Bold in that tab, in the Font Effects tab set the colour (you had for Heading 1, 5983b0; Heading 2, 729fcf, Heading 3, b4c7dc )

.
If the Styles pane is set Hierarchical you can see the inheritance by what is under what.
.
It looked as if you wanted to emulate the old MS Word Normal style. Here is a Writer template with your font sizes but MS fonts and colours, just change Heading and Default Paragraph Style to your preferred font
MyWriterTemplate117189EA.ott (9.5 KB)

I remind you there are three layers of formatting in Writer:

  • paragraph style PS
  • character style CS
  • direct formatting DF

CS overrides PS. DF overrides CS.

You have DF active on your Heading 2 which masks the changes you can make with a CS or in the default character style defined in the PS.

Select the full Heading 2 paragraph and Ctrl+M to clear direct formatting.

You can tell the presence of DF with the Style Inspector in the side pane. Remember that DF is a speedway to formatting hell. Although DF is erroneously considered to be intuitive (because M$ conditioned us to as Word has no elaborate notion of styles), formatting with DF requires expert skill to succeed at first attempt and leaves you in front of an unmanageable nightmare when it comes to tuning a document.

2 Likes