Project

General

Profile

Bug #2

Font Width and Window Width not lining up

Added by Theno Main 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Low
Start date:
10/20/2019
Due date:
% Done:

100%

Estimated time:

Description

Issue:

Using `width( %# )` with size-based Mush-related text output functions (repeat, center, wrap) can result in window screen-wrap, past the edge of the screen's dimensions.

How to test:

`think repeat( -, width( %# ))`

Notes:

It feels like I'm the only person coding for variable screen widths.

Screenshots available upon request.

Thanks.

History

#1

Updated by Rachel Blackman 7 months ago

  • Assignee set to Rachel Blackman

Apparently recompiling against the newer SDK may have altered the font metrics returned on some fonts. Try to collect information on affected fonts to diagnose the change and correct the calculations. Otherwise, worst case, just subtract a few from the width; better to return an inaccurate width smaller than the window than one larger than it.

#2

Updated by Rachel Blackman 7 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in 0.9.9.7.

#3

Updated by Rachel Blackman 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF