Skip to main content
Language

Configure Fonts

PhotoEditor SDK supports several configuration options for the TextToolPanel allowing flexible adaptation to different needs and use cases.

Default text alignment#

By default, the text alignment is set to Paint.Align.CENTER. In this example, the default text alignment is set to Paint.Align.LEFT.

Set available tools#

By default, all available text tools are enabled. In our example, we only allow changing the font and color of the text.

Set available colors#

By default, the editor provides a variety of different colors to customize the color of the text. For this example, only a small selection of colors is shown by default.

Set available background colors#

By default, the editor provides a variety of different colors to customize the background color of the text. For this example, only a small selection of colors is shown by default.

Enable emojis#

By default, the editor does not allow to add emojis as text input since they are device specific and have high rendering time. Since emojis are not cross-platform compatible, using the serialization feature to share edits across different platforms will result in emojis being rendered with the system's local set of emojis and therefore will appear differently. For this example, emoji input is enabled.