Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No underline or strikeout option for fonts in layouts - proposal to add qt5ct to QGIS depencies #32904

Closed
jgrocha opened this issue Nov 17, 2019 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@jgrocha
Copy link
Member

jgrocha commented Nov 17, 2019

Describe the bug

When preparing layout, on some Linux computers, the font dialogue is quite simple. The user can choose only the family, style and size. The user has no option for underline or strikeout, for example.

Ubuntu default font dialogue

On other Linux flavours, the font dialogue was different, with more options.

Screenshot-20191116180749-500x409

Creating and running the same QT program (with just a call to QFont font = QFontDialog::getFont(&ok, QFont("Helvetica", 10), this); shows that difference: the QT program is the same, but the rendered dialogue is different.

How to solve

After some investigation, the problem was solved by installing the qt5ct package. Installing and running qt5ct fixes the problem (and the user can use it to define other customizations).

qt5ct dialogue

Packaging request

Does it make sense to add this qt5ct package to the QGIS dependencies?

I've wrote the report to make it searchable, if someone else has the same problem and if we decided to not include qt5ct in QGIS dependencies.

How to Reproduce

  1. Install QGIS in a fresh Ubuntu 18.04 computer.
  2. Create a project
  3. Create layout
  4. Add a label
  5. Change label font: no option for underline or strikeout.

QGIS and OS versions

QGIS 3.4 and up (not checked in previous versions).

Additional context

This problem was reported in a QGIS Talks meeting (organized by QGIS PT), by Hugo Santos (@ulmi).

@jgrocha jgrocha added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 17, 2019
@gioman gioman added the Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks label Nov 18, 2019
@jgrocha
Copy link
Member Author

jgrocha commented Nov 18, 2019

I'll close the issue for now. If qt5ct package is necessary for any other customization, I'll request to include it in QGIS package dependencies.

@jgrocha jgrocha closed this as completed Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

2 participants