Patent attributes
This disclosure involves the automatic sizing and placement of text within an image background. For example, a computing system obtains reference font size information for a font type to be applied to message text for display on a digital image. The computing system detects, within an image background of the digital image, a target region having proportions that enclose the message text based on the reference font size information. The computing system determines a target font size for the message text. The target font size allows the message text, when rendered in the font type at the target font size, to fit within the target region of the image background. The computing system generates a combined digital image by rendering the message text in the font type at the target font size within the target region of the image background.