Bug 432734 - Linux Report CSS has wrong fonts and doesn't make totals bold
Summary: Linux Report CSS has wrong fonts and doesn't make totals bold
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: reports (show other bugs)
Version: 5.1.1
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 12:43 UTC by Mark Medoff
Modified: 2021-07-30 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Custom CSS used successfully with Linux Mint for fonts + bold (10.24 KB, text/css)
2021-02-10 12:43 UTC, Mark Medoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Medoff 2021-02-10 12:43:20 UTC
Created attachment 135556 [details]
Custom CSS used successfully with Linux Mint for fonts + bold

SUMMARY
The CSS supplied with Linux distros references Windows fonts and fails to make Report sub-totals and totals Bold. There is an option to provide your own CSS but there is no documentation what can or can't be in a CSS.

STEPS TO REPRODUCE
1. Open kmymoney.css and observe multiple references to font-family: verdana, arial, helvetica, sans-serif;
2. 
3. 

OBSERVED RESULT
These fonts are not provided with Linux resulting in sub-optimal report rendering.
Report sub-totals and totals are not bold, decreasing readability.

EXPECTED RESULT
Linux fonts should be specified for Linux versions of the program including with the appimage.

Report sub-totals and totals should be bold.

See attached custom CSS used with Linux Mint.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Version 5.1.1-65ab93d
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: KDE Frameworks 5.51.0
Qt Version: Qt 5.11.3 (built against 5.11.3)

ADDITIONAL INFORMATION
Comment 1 Dawid Wróbel 2021-06-30 00:36:31 UTC
Mark,

> The CSS supplied with Linux distros references Windows fonts
> Linux fonts should be specified for Linux versions of the program

That's not how our CSS file works and how any CSS should work. The fonts referenced are part of "font-family" property, as opposed to "font", which means they are a *hint* for which font should be chosen ("A prioritized list of font family names and/or generic family names"). While you see references to Verdana and Arial and Helvetica, the "sans-serif" is a generic name for a font family that the operating system/browser should choose to substitute them, should those exact fonts not be available.

See here: https://www.w3schools.com/CSSref/pr_font_font-family.asp and also here https://www.w3schools.com/cssref/css_websafe_fonts.asp


In other words, none of those Windows fonts are causing the issues you're seeing. The problem is likely a matter of the font you have configured in your system as a default provider for "sans-serif". 

In any case, please attach a screenshot of what seems to be the problem.
Comment 2 Bug Janitor Service 2021-07-15 04:33:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-07-30 04:33:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!