4 ms·
Here I thought everyone learned this when they started colorizing their bash prompt and suddenly their terminal session would wrap the line before the cursor go
by ChuckMcM 12y ago
Here I thought everyone learned this when they started colorizing their bash prompt and suddenly their terminal session would wrap the line before the cursor got to the right side of the screen :-)
The article fails to discuss non-monospaced fonts, which make this problem even more pronounced. For a long time Word would screw up a ligature if it also included a color change. The only hope is length(source_data, rendering_environment) as a function.
- zokier 12y ago> The article fails to discuss non-monospaced fonts, which make this problem even more pronounced I think proportional fonts makes this issue less pronounced because for more people it makes intuitive sense that you can't get string width by just counting characters, and thus they end up using proper measurement functions.
- ChuckMcM 12y agoThat is an excellent point.