Skip to content

IPlacementContextStrategy

InterfaceTextStudioTextStudio
public interface IPlacementContextStrategy : IPlacementStrategy

Extended placement contract for strategies that need rendered line ranges and sizing metadata in addition to the flat glyph positions.

ComputePlacements(in PlacementContext, GlyphPlacement[])

Section titled “ComputePlacements(in PlacementContext, GlyphPlacement[])”
void ComputePlacements(in PlacementContext context, GlyphPlacement[] placements)

Compute placements for all visible glyphs.

Parameters

Name Type Description
context TextStudio.PlacementContext Input layout, rendered line ranges, and sizing metadata.
placements TextStudio.GlyphPlacement[] Output: final 3D placements.