InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SLCLineFitter Class Reference

#include <SLCLineFitter.h>

Public Member Functions

 SLCLineFitter (void)
 
virtual ~SLCLineFitter (void)
 
virtual bool16 RebuildLineToFit (IParagraphComposer::RebuildHelper *helper)
 

Detailed Description

Positions glyphs in the line, adjusts their width if necessary and creates wax runs (IWaxRun) to represent the text. The decision about where text should be broken is made elsewhere, in SLCLineBreaker.

Note that this implementation does not do paragraph alignment, justification, letter spacing, word spacing, kerning, fixed or zero width spaces or other width adjustments. If these are required features they should be added here.

The range of characters indicated by the line(IWaxLine) is flowed into the tiles given by the line. The only width adjustment implemented by this composer is the scaling of trailing white space to fit within available space in the tile.

No tiles are obtained from the tiler in this implementation, the wax line gives the tiles. A wise fallback might be to attempt recompose the line from scratch if an unexpected error occurs during fitting. In which case you'd want to use the tiler.

See Also
IWaxLine
IWaxRun
SLCGlyphNode
SLCGlyphNodeList

Constructor & Destructor Documentation

SLCLineFitter::SLCLineFitter (void )
inline
Not much is done here. Set up is done each time 

through {RebuildLineToFit}.

virtual SLCLineFitter::~SLCLineFitter (void )
inlinevirtual
Nothing is done here. Clear up is done each time 

through {RebuildLineToFit}.

Member Function Documentation

bool16 SLCLineFitter::RebuildLineToFit (IParagraphComposer::RebuildHelperhelper)
virtual