The code for laying out the Presenter Console help screen has a number of errors: 1. It starts with an initial guess for the font size, then attempts to reduce that size until a suitable value is found. This fails when the initial guess is already too small. 2. It fails to take the space taken up by the Close button into account. As a result, help text may overlap the Close button. 3. Long lines are only wrapped next to commas, and never at spaces. This can cause text to get clipped horizontally, instead of being correctly wrapped. This patch fixes these issues. Wrapping still prefers commas to spaces, but if a sequence containing no commas cannot fit on a single line, it resorts to space-based wrapping. This way, clipping can only occur if a single long word cannot fit on a line - hardly a plausible scenario.
Attachment:
0001-fdo-46223-Fix-Presenter-Console-help-screen-layout.patch
Description: Binary data