[Qgis-user] Locking Font Characteristics for Text Items in Print Layout

Tim Malloy tim at tgmalloy.com
Fri Dec 8 10:33:21 PST 2023


Sebastian – thank you for your thoughts.  The idea that a different version of QGS might be creating the issue had occurred to me and I’ve tested that by opening the project file in the version in which it was originally created.  That did not resolve the issue.  It seems unlikely that corruption of a specific QGIS project file is the issue since this problem occurs with all my project files.  The fonts that I’m having issues with are installed on my system and I have no issues with these same fonts in other applications on my computer.  Also, once I reset the font variables in my QGIS Print Layout, they show up fine and remain unchanged for an extended time period.  However, after an unknown amount of time (months to a year or so), the font characteristics reset to the default.

I’ll try submitting a bug report.

Tim


From: Sebastian Gutwein <bas at rdgland.com>
Sent: Friday, December 8, 2023 10:09 AM
To: Tim Malloy <tim at tgmalloy.com>
Cc: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] Locking Font Characteristics for Text Items in Print Layout

Tim,
I have never had the font style change on me after reopening a QGIS file. In other words they should be locked by default.
To me this sounds like a bug or there is an issue with the way fonts are working on your system or your QGIS file is getting corrupted in some way.
If you can share your file or create a simple file showing the issue I would suggest creating a bug report on the QGIS github site. https://github.com/qgis/QGIS/issues
The volunteer bug fixers will only be able to fix your issue if they can reproduce it so if you can create a file with steps that consistently creates the problem you will have the best chances of getting it resolved.

Here are some things I would consider trying.
If you are using a different version of QGIS now you could try to download and use the same version of QGIS that you used previously in case something changed on the QGIS code that prevented your file from working correctly.
Is it possible that the font you were using previously is no longer available on your system and QGIS is replacing it with another font?

Good luck
-Bas

On Fri, Dec 8, 2023 at 10:39 AM Tim Malloy via QGIS-User <qgis-user at lists.osgeo.org<mailto:qgis-user at lists.osgeo.org>> wrote:
Hello again.  Noone responded to my initial inquiry below so I’m resending the email since this issue has come up for me again.  I have 14 maps that I made about a year ago to which I need to make some very minor revisions.  When I opened the layouts in my project, I once again discovered that all the formatting for the text items created in Print Layout has been lost and must be reformatted.  I figure it will take me about 10 minutes per map to redo all the text formatting, which translates to over 2 hours of work.  The edits that my client has requested would take about 15 minutes for all 14 maps.  So, I’m losing 2 hours of billable time since I can’t charge for redoing all the text item formatting.

Anyone have any input?

Gratefully,

Tim

Original Email Below:

Hello all – does anyone know if there is a way to lock a text map item in QGIS Print Layout to prevent the font size and type (bold, italic, etc.) from changing over time.  I’ve had several situations where I created a series of maps and exported them to PDF for a client and later needed to amend the maps and found that the text items created in Print Layout (map title, date, figure number, disclaimer statement, legend text, etc.) had reverted to a default font size and type.  Having to reset all the fonts for the text items can be very time consuming when you need to do it for 20 or 30 maps.  I’ve tried locking the text item in the Items panel in Print Layout but that seems only to prevent the text item from being moved but does not retain the font characteristics.

Any thoughts would be appreciated.

Tim

_______________________________________________
QGIS-User mailing list
QGIS-User at lists.osgeo.org<mailto:QGIS-User at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


--
___________________________
Sebastian "Bas* " Gutwein
*rhymes with Josh

Regenerative Design Group
1 Chevalier Ave
Greenfield, Ma 01301
Web: regenerativedesigngroup.com<http://regenerativedesigngroup.com>
(631) 241-1018
Look close, think big, make change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20231208/f56e8310/attachment-0001.htm>


More information about the QGIS-User mailing list