Read font settings data from tspans instead of texts
<!-- See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/ Writing a good bug report will ensure we'll be able to help efficiently. 🙂 --> #### Summary: <!-- Summarize the issue/suggestion concisely: --> Currently Inkscape reads text style attributes from the <text> element for the tooltips and the T&F dialog. This is inaccurate and we should only read the style on the <text> if there's no tspans within. #### Steps to reproduce: <!-- Describe what you did (step-by-step) so we can reproduce: --> **Case 1** - open Inkscape - switch to the Text tool - type something - select text within - press Ctrl+B to bolden - click outside or press Esc - switch to the Selector tool - select the text - look at the status bar and the T&F dialog **Case 2** - open Inkscape - switch to the Text tool - type something - press Esc and switch back to the Selector tool - in the T&F dialog switch the font and text size to say, Noto Sans 12 - go to the Text tool - click on the text then press Ctrl+A (select all) - go to the T&F dialog and select another font/size combo (say, Inter 24) - press Esc and go back to the selector tool - select the text - look at the status bar and the T&F dialog (additionally try changing the settings in the T&F dialog) #### What happened? The <text> font and size is read, and changing it causes jumps in the text #### What should have happened? Settings are read from internal tspans and multiple styles are properly shown #### Version info <!-- Open 'Help > About' and click on the little bug icon in the bottom right corner that copies the debug information to your clipboard. For command line users, run 'inkscape --debug-info'. For Inkscape 1.0.2 and older, please manually add the Inkscape Version and Operating System Version. The Inkscape version is listed in the About dialog. For command line users, run 'inkscape -V' Paste the information in the empty space between the apostrophes below: --> ``` Inkscape 1.5-dev (d15180887b, 2025-03-23, custom) Compile (Run) GLib version: 2.84.0 GTK version: 4.18.2 (4.18.2) glibmm version: 2.84.0 gtkmm version: 4.16.0 libxml2 version: 2.13.6 libxslt version: 1.1.43 Cairo version: 1.18.4 (1.18.4) Pango version: 1.56.3 (1.56.3) HarfBuzz version: 10.4.0 (10.4.0) Poppler version: 25.03.0 OS version: Slackware 15.0 x86_64 (post 15.0 -current) ``` <!-- ❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️ Please be patient while we try to find the time to look into your issue. Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports. --> <!-- Please be careful when/after writing # for example in logs, code, or versions of linux - use inline code span - single backticks (`) before and after it, like this - `#1618` - use multi-line code block - triple backticks (```) to fence/enclose console logs - attach long logs as a text file. -->
issue