-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Please forgive me for the pettiest bug report of all time. This just seriously bugs me. |
Beta Was this translation helpful? Give feedback.
-
This is intentional. They're two separate concepts. The underline style is a feature of the font, so its width will vary depending on what font you're using. The overline is just one of the "grid lines" that border all sides of the cell. Traditionally those lines have always been a single pixel, so we've tried to remain reasonably compatible with that usage. It does now scale if you're using a high DPI display or a large font size, but it isn't expected to match the underline width. |
Beta Was this translation helpful? Give feedback.
-
That said, you could argue that maybe the base size of these grid lines should be wider (I think it's currently 0.025em), but we need to be careful that we're not breaking backwards compatibility with the original single pixel expectation. Grid lines are more commonly used in "East Asian" locales, where the glyphs tend to occupy a large portion of the cell, so you're at risk of overlapping the text if the grid lines are too wide. |
Beta Was this translation helpful? Give feedback.
-
In my opinion they are the same thickness: |
Beta Was this translation helpful? Give feedback.
-
@237dmitry It depends on your DPI / display scale and font size. DxRenderer (old text renderer) uses 0.025em for its thin lines. That is, for a font size of 12pt you get 0.3px thick lines (here I mean pt and px as CSS units in 96 DPI, aka 100% display scale). At 300% scale like in the original comment above, it would still result in <1px thick lines, which is then forcefully rounded up to a min. of 1px. The newer AtlasEngine uses half the underline width as the width for thin lines, as this happens to match Word's approach for double-underlines. This may result in thicker 2px lines for @ClaireCJS depending on whether their 1.5px thickness gets rounded up or down. |
Beta Was this translation helpful? Give feedback.
-
@lhecker I knew the AlasEngine used a different algorithm for double underlines, but I wasn't aware that it was using that same "thin line" width for grid lines. That's possibly not a good idea. Does Word really use grid lines like that as well? Not that it matters as things are now, since the only grid line that works in Windows Terminal is the overline, but if we ever got full grid line support, I would think a width derived from the underline style could be more risky. |
Beta Was this translation helpful? Give feedback.
This is intentional. They're two separate concepts. The underline style is a feature of the font, so its width will vary depending on what font you're using. The overline is just one of the "grid lines" that border all sides of the cell. Traditionally those lines have always been a single pixel, so we've tried to remain reasonably compatible with that usage. It does now scale if you're using a high DPI display or a large font size, but it isn't expected to match the underline width.