开发者

how can I modify browser word wrap behavior?

开发者 https://www.devze.com 2023-02-01 19:41 出处:网络
I notice that when the browser (firefox, safari) wraps text, the space where it breaks to wrap (the last space of a line) gets turned into a zero-width space, i.e, when you create a mouse selection ac

I notice that when the browser (firefox, safari) wraps text, the space where it breaks to wrap (the last space of a line) gets turned into a zero-width space, i.e, when you create a mouse selection across multiple lines in a paragraph, the space开发者_高级运维 where it breaks does not visibly show. Is it possible to change this behavior so that the breaking space retains its width?

Thanks!


It's a guess but I would say no. This is a fundamental way in which the browser works.


Yes, this is possible using a font where the zero-width space character is designed having the width of a normal space. You may use Fontforge to create own fonts or to modify existing fonts. It is free and mighty, but takes some time to get used too.

0

精彩评论

暂无评论...
验证码 换一张
取 消