On Microsoft Windows and Cocoa, rich-text-pane allows you to display and edit rich text. It supports character attributes such as font, size and color, and paragraph attributes such as alignment and tab-stops.
See this example:
(example-edit-file "capi/applications/rich-text-editor")
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:31