Laying out a paragraph using a layout services library. An entire paragraph
is defined as a single text run. The text run is laid out by substituting
glyphs for the characters of the text run and then positioning the glyphs.
After the text run is laid out, the length of the text run is compared to
the line length. If the length of the text run exceeds the line length,
then the text run is divided into a parent text run and a child text run.
If justification is enabled, then the parent text run is justified. If a
child text run is created, then the length of the child text run is
compared to the line length. If the length of the child text run exceeds
the line length, then the process is repeated until the length of the last
child text run does not exceed the line length. A layout services library
provides text processing functions which support the paragraph layout and
the justification.
Colocar para fora de um parágrafo que usa uma disposição presta serviços de manutenção à biblioteca. Um parágrafo inteiro é definido como um único funcionamento do texto. O funcionamento do texto é colocado para fora substituindo glyphs para os caráteres do texto funcionado e então posicionando os glyphs. Depois que o funcionamento do texto é colocado para fora, o comprimento do funcionamento do texto está comparado à linha comprimento. Se o comprimento do funcionamento do texto exceder a linha comprimento, o funcionamento do texto está dividido então em um funcionamento do texto do pai e em um funcionamento do texto da criança. Se a justificação for permitida, a seguir o funcionamento do texto do pai está justificado. Se um funcionamento do texto da criança for criado, o comprimento do funcionamento do texto da criança está comparado então à linha comprimento. Se o comprimento do funcionamento do texto da criança exceder a linha comprimento, a seguir o processo está repetido até que o comprimento do último funcionamento do texto da criança não exceda a linha comprimento. Uma disposição presta serviços de manutenção à biblioteca fornece as funções processando de texto que suportam a disposição do parágrafo e a justificação.