Ancestor Tree font spacing problems

When I run the Ancestor Tree report, the kerning (spacing) with the font is off; it’s either overlapping or too spaced out (see screenshot)

I’d like to know how to either fix it or if there’s a way to hack the python script to choose a font different than what is presented with the options? I’m not a fluid Python coder but I’m far from a newbie so feel free to speak geek with whatever I have to do to get this sorted out.

P.S. – I’ve already tried reinstalling Gramps from scratch.

And below are the specs on both Gramps and my OS:

GRAMPS: AIO64-5.2.2-r1-f905d14
Python: 3.11.8
BSDDB: 6.2.9 (6, 0, 30)
sqlite: 3.45.2 (2.6.0)
LANG: en_US.UTF-8
OS: Windows

OS Name: Microsoft Windows 11 Home
OS Version: 10.0.22621 N/A Build 22621
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
System Model: HP Pavilion Laptop 15-eg3xxx
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 186 Stepping 3 GenuineIntel ~1300 Mhz
BIOS Version: AMI F.04, 11/9/2023

Thanks in advance!

Which output format (and Style) are you using?

I’m using PDF but I’ve also tried SVG. This is a sample from the output:

It looks like the Style Sheet is not being read or is corrupted.

Ahhh! That’s a great file to check first! Do you happen to know the file location for the css style sheet (or a link where I can look it up)?

In the meantime I’m going to reboot, reinstall fresh again and see if it writes a default style sheet…

EDIT: No luck with the reinstall, same output as before.

1 Like

I found the css folder – and it is empty.

1 Like

I’m not going to be much use in chasing down a Report style problem. Reports aren’t something I use much.

Try making a new Style and see if any of the changes are applied. Changing the “Type face” in the “Font options” tab should be most noticeable. You’ll notice that the default is “Roman” which looks for Times or serif. the “Swiss” is Arial, Helvetica, or sans-serif.

In your screen captures, the sans-serif and lack of Drop Shadows for the boxes make it likely that the problem is in the Stylesheet.

Another possibility is that the report_options.xml listing in the Gramps User Directory for the that report is the problem. There is a line (<style name="default"/>) near the bottom of the section for the “Ancestor Tree” (labeled <module name="ancestor_chart">). It might not get to the bottom if there’s a problem higher in the section.

The settings files in the User Directory are not wiped during a re-install.

1 Like

For what it’s worth, your input helped me fix it. I exited Gramps, made a backup copy of the gramps user folder

C:\Users\[username]\AppData\Local\gramps

then deleted the report_options.xml file. Then I ran Gramps again, loaded my tree then went to Ancestor Tree report. I had a funny feeling the options file would re-create itself – and I was correct. The font problem is fixed.

Thanks again!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.