Schematics pdf plot: Overdrawn font outline

A recent commit changed the outline of fonts in a pdf plot. All text looks a bit overdrawn for fonts other than KiCad Font. See images below.

screenshot-1747133901

screenshot-1747133904

Steps to reproduce:

  • Create project
  • Create schematic document
  • Insert text using text tool
  • Plot as pdf

Font type is Consolas. The issue might apply to KiCad font also, but then it doesn't stand out due to its thin lines.

Application: KiCad x86_64 on x86_64

Version: 9.99.0-1205-gc519a6b827, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 11.2.0
	FontConfig 2.16.2
	libcurl/8.13.0 OpenSSL/3.5.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.65.0 nghttp3/1.9.0

Platform: Arch Linux, 64 bit, Little endian, wxGTK, X11, , tty

Build Info:
	Date: May  7 2025 11:09:38
	wxWidgets: 3.2.9 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.88.0
	OCC: 7.8.1
	Curl: 8.13.0
	ngspice: 44.2
	Compiler: GCC 15.1.1 with C++ ABI 1020

Build settings:
	KICAD_USE_EGL=ON
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Alex