Online ads and other text content are designed such that the text content completely fits within a defined area. However, the size of the text container may change when viewed under different viewports. For example, a responsive ad is constructed to be displayable in viewports of varying sizes. Text sized for a certain container may no longer properly fit the container as it expands or shrinks. The techniques of this disclosure provide an authoring environment that smartly adjusts text content to maintain fit within the bounds of a container element as the container expands or shrinks, or if the text content dynamically changes. Per the techniques, text fitting is enabled at authoring time (with continuous preview) and at run time.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.