Schematic Editor: The entire selected text is not highlighted.

Description

In the schematic editor, when I select a multi-line text object (a text box), it doesn’t get fully highlighted if its font is set to anything other than KiCad or Default.

Steps to reproduce

Výstřižek

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 9.0.7-267-ge1fe374b0a, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 12.2.0
	FontConfig 2.15.0

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2, 4.6.0 NVIDIA 527.99

	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.89.0
	OCC: 7.9.2
	Curl: 8.17.0-DEV
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by René Široký