Inventors:
Ilan Berker - Seattle WA, US
Jason C. Costa - Seattle WA, US
Keywon Chung - Seattle WA, US
Matthew J. Kotler - Kenmore WA, US
Janet L. Schorr - Seattle WA, US
Scott A. Sherman - Seattle WA, US
Karen K. Wong - Seattle WA, US
Assignee:
Microsoft Corporation - Redmond WA
International Classification:
G06F 17/21
US Classification:
715246, 715247, 715256, 715272, 345619, 706 19
Abstract:
A method and computer-readable medium are provided for fitting text to shapes within a graphic. According to the method, initial constraints are defined that comprise initial values describing how a shape and text within the shape should be laid out. Constraint rules are also defined for use in modifying the initial constraints when application of the initial constraints to the text in a shape results in the text overflowing the boundaries of the shape. A change may be detected to the graphic that would affect the size or position of one or more of the shapes or the text within one of the shapes. If such a change causes text to overflow when laid out using the initial constraints, the constraint rules are applied sequentially to modify the constraints. The modified constraints are then reapplied to the shapes to create a new layout for the graphic.