2024 update: The Gutenberg block “Text (Adv)” offers these same options and more. The Header Content Block can used to title a section of a page. After you enter a Heading title, you can choose a text display option from the following: Overlay, Left, Right, Center. Header Example
Visit Page Adding Headers