Bug 466954 - Changing font attributes in plot title and axis titles work not as expected
Summary: Changing font attributes in plot title and axis titles work not as expected
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (show other bugs)
Version: latest
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-06 17:18 UTC by Dirk Niemeier
Modified: 2023-03-08 19:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.10


Attachments
lml used for applying font attribute changes (23.29 KB, application/x-xz)
2023-03-06 17:18 UTC, Dirk Niemeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Niemeier 2023-03-06 17:18:55 UTC
Created attachment 157050 [details]
lml used for applying font attribute changes

SUMMARY
***
Changing the font attributes of the plot title and axis titles work not as expected. 
***


STEPS TO REPRODUCE
1. Load the attached lml.
2. In the plot title select the word Convective and change it to bold - works. Revert.
3. Change the C in Convective to bold - does not work. Revert.
4. Try the same with the H in Heat - works. Revert
4. Select any other word and change it to bold: Might work (9/10) or not (1/10)?
5. In the x axis title select "v" and try to change it to bold - does not work. Revert.
6. Select "[m/s]" and change to bold - works. Do not revert.
7. Select the whole string and toggle bold - won't work (_nothing_ is toggled in the Plot Area, you have to "untoggle" it piecewise, it's correctly shown in the property sheet but not in the graphical area).
8. I'd like to encourage you to perform your own experiments in the case I left something out.

OBSERVED RESULT
In summary it seems changing font attributes never works on the first character _alone_, no matter if it is followed by a blank or another character. Toggling attributes depend on the previous status."Never works" means changes are not visible in the Plot Area although shown correctly in the property sheet.

EXPECTED RESULT
See in the Plot Area what is shown in the property sheet.

SOFTWARE/OS VERSIONS
Windows: 10 20H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Martin 2023-03-07 20:30:50 UTC
Hi Dirk,

how do you select. I have seen if you select from left to right the operation you are doing works fine, but if you select from right to left it does not work. Can you confirm that this is the issue?

Might get solved with https://invent.kde.org/education/labplot/-/merge_requests/250
Comment 2 Dirk Niemeier 2023-03-08 11:22:38 UTC
I can confirm: When selected from left to right changing attributes works, when selected from right to left it doesn't work.
Comment 3 Alexander Semke 2023-03-08 19:51:16 UTC
Fixed with https://invent.kde.org/education/labplot/-/merge_requests/250.