josh-berry / magic-reflow

Atom package to reflow/rewrap text in a variety of situations (paragraphs, comments, bulleted/numbered lists, etc.)
MIT License
5 stars 1 forks source link

reflow doesn't respect preferred line length #4

Closed drammock closed 7 years ago

drammock commented 7 years ago

I see in the code that you're attempting to respect Atom's "preferred line length" setting, but something's not working. Some screenshots:

Before reflow: before

After reflow: after

Note how the word "longest" extends beyond the line-length guide.

drammock commented 7 years ago

Oops, nevermind. This is a font issue. The unicode minus sign (u+2212) is apparently unusually wide in this typeface, or else is not included in the preferred typeface and is being rendered in a fallback face with a different fixed character width.