You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add support for line breaking to this API. This is arguably more important than word segmentation and grapheme segmentation.
It is becoming increasingly common now for web apps to have custom text rendering, and these web apps need an API for line segmentation to be able to lay out text in lines with wrapping. HTML/CSS are too high-level to provide the font support that many web apps need, so low-level API is needed. Line-breaking libraries tend to be fairly large, so it's not really practical to directly bundle them in web apps either, so it would be better if the browser could provide this functionality.
Custom text rendering is used in
application web apps for word processing, vector illustration, paint programs, svg visualizations, etc.
any web page that needs to render text in WebGL or VR/AR (via WebXR). Good-looking text in 3d engines is commonly implemented using signed-distance fields, which requires a custom text renderer
And they all need proper internationalization APIs for line breaking (or at least they need sufficient low-level APIs that a web app can build a line breaking algorithm on top of it)
The text was updated successfully, but these errors were encountered:
Please add support for line breaking to this API. This is arguably more important than word segmentation and grapheme segmentation.
It is becoming increasingly common now for web apps to have custom text rendering, and these web apps need an API for line segmentation to be able to lay out text in lines with wrapping. HTML/CSS are too high-level to provide the font support that many web apps need, so low-level API is needed. Line-breaking libraries tend to be fairly large, so it's not really practical to directly bundle them in web apps either, so it would be better if the browser could provide this functionality.
Custom text rendering is used in
And they all need proper internationalization APIs for line breaking (or at least they need sufficient low-level APIs that a web app can build a line breaking algorithm on top of it)
The text was updated successfully, but these errors were encountered: