This feels like cart before the horse.
As of macOS 15 (and I don't think they fixed it in 26), you can only increase the font size of first-party apps on macOS.
The global font size setting doesn't apply to third-party apps, even those built using Apple's frameworks.