[Qt] move SubstituteFonts() above ToolTipToRichTextFilter

- doesn't belong to the ToolTipToRichTextFilter class so move it up
Merge remote-tracking branch 'bitcoin/pr/4659'