fealty/Frost — Issue #1: Glyph Shaping & Line Breaking
Author: fealty
Created: 2012-03-03 06:35:40+00:00
State: open

Some fonts and certain scripts require that glyphs be shaped with line breaks taken into account. The current shaping code does not take line breaks into account. If need arises, the existing text pipeline can be modified to support correct shaping. First, process text as normal through to the end of the typesetting stage. Then save the breaking points determined by the typesetter. These breaking points will be processed as though they are forced. Reshape the text with the runs split by the forced line breaks. Then typeset the results with the forced line breaks. The remainder of the pipeline remains unchanged.