Table of Contents

Property FitTextToMeasuredWidth

Namespace
DocWright.Reporting.Viewer
Assembly
DocWright.Reporting.Viewer.dll

FitTextToMeasuredWidth

Gets or sets a value indicating whether each run of text is held to the width the paginator measured for it. The default is true.

public bool FitTextToMeasuredWidth { get; set; }

Property Value

bool

Remarks

The page model was laid out against the fonts DocWright resolved; a browser may not have them. Left alone, a substituted font makes every run a different width from the one the PDF was paginated with, and runs on a line begin to overlap or gape — visibly, because a report positions every run rather than flowing it.

With this set, each run carries SVG's textLength with lengthAdjust="spacing", which distributes the difference between the glyphs instead of scaling them. Where the font does match, the measured and natural widths agree and nothing is adjusted.