qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

Font issue in the layout #57469

Closed Global-Citizen closed 5 months ago

Global-Citizen commented 5 months ago

What is the bug or the crash?

The font looking will be changed after reopening the project. The font size and style are all the same, but they are just different on the screen. It seems that the texts are stretched vertically. The legend frame will be changed with the font looking by turning on "Resize to fit contents" function.

Before: Snipaste_2024-05-17_11-03-04 After: Snipaste_2024-05-17_11-02-04

Steps to reproduce the issue

  1. Open a new .qgz file
  2. Go to layout
  3. Create a Legend -> Type some texts (Including Title, Subgroup Headings, Item Labels. )-> Go to Fonts and Text Formatting -> Change the font style by click on "Regular" and then click on "Bold"
  4. Save and close the file
  5. Reopen the file, Go to layout. The font will be changed
  6. The font can be changed back to the "before" by click style ->Regular -> Bold.

Versions

QGIS version 3.34.6-Prizren QGIS code revision 623828f5 Qt version 5.15.13 Python version 3.12.3 GDAL/OGR version 3.8.5 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.45.1 PDAL version 2.6.3 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version Windows 11 Version 2009

Active Python plugins FreehandRasterGeoreferencer 0.8.3 GeoCoding 2.19 MapsPrinter 0.9 mmqgis 2021.9.10 numericalDigitize 0.4.7 processing_saga_nextgen 1.0.0 profiletool 4.2.6 quick_map_services 0.19.34 StreetView 3.2 tuflow 3.11 volume_calculation_tool 0.4 db_manager 0.1.20 grassprovider 2.12.99 processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

Global-Citizen commented 5 months ago

The bug can be fixed if using a new QGIS profile.