Comments (1)
Text wrapping is not implemented for the TextEditor widget yet. It does however work for the Text widget. Adding this feature to the TextEditor would involve additional computing for line positions so that the caret, mouse, and scrollview remains correct. The current logic for text layout is here for anyone interested:
cosmic/graphics/src/graphics.zig
Line 813 in d6c0147
Since the TextEditor has a buffer for each line, the first version would probably need a TextLayout for each line.
In the meantime, I'll update the demo with a todo item.
from cosmic.
Related Issues (20)
- UI Framework HOT 1
- Native async File IO
- Sync and Native async network IO
- JS Web Target
- WASM Web Target
- Crash on zig build get-deps HOT 3
- Example build error HOT 3
- Text_demo 'Load Font' crash HOT 1
- Text_demo: clicking on scroll bar
- Text_demo: double click to open directory
- Support Vulkan on Windows
- Easier development with Vulkan on macOS
- build error: redeclaration of succcess_cb HOT 2
- import std null build error gitrepostep HOT 6
- segfault HOT 4
- Text To Speech, Speech To Text HOT 1
- Build on Windows fails due to missing SDL2 files HOT 3
- Build error HOT 1
- Build error. Multiple errors "local variable is never mutated" and other errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmic.