https://bugs.documentfoundation.org/show_bug.cgi?id=140384

            Bug ID: 140384
           Summary: Character style relative font size enhancement/bug
           Product: LibreOffice
           Version: 6.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: p...@rhyme.com.au

Description:
When defining a Character Style, one can specify a % as the size. This is
documented to be relative to the parent style.

If the character style has not parent (most of mine don't), then the "parent
style" should be derived from the Paragraph style. Instead it seems to be
derived from another style (not sure which one).

This may not be a strict interpretation of 'parent', but it makes both
intuitive and logical sense.

This could be seen as wither a bug report (there should be no parent to inherit
from) or an enhancement request (use paragraph style as parent when no parent
given). It's probably both: a bug report, with a suggested solution.

eg. if I define "Attention" style to be "Bold,110%", and apply it to a word in
a Heading, then it should be relative to the heading font size. If I apply it
in a Text Body, the size change should be relative to the Text Body font size.

Steps to Reproduce:
1. Define a new character style with no parent
2. Set font size to 120%
3. Define a paragraph style with 20pt font
4. Define a paragraph style with 10pt font
5. Write some text in each of this paragraph styles
6. Apply the character style to a word in each of those paragraphs
7. Notice that the styled word is now the same size in each paragraph.

Actual Results:
The styled word is now the same size in each paragraph.

Expected Results:
the styled word should derive it's size from the paragraph style.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL

This is a behaviour that has existed a long time and seems to be by design. The
buggy edge case presented hers (no parent) presents an opportunity to provide a
substantial enhancement to a feature.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to