Comments (4)
You will need to use the text
widget directly and set its shaping
strategy to text::Shaping::Advanced
:
use iced::widget::text;
text("你好").shaping(text::Shaping::Advanced)
from iced.
您需要直接使用小部件并将其策略设置为:
text``shaping``text::Shaping::Advanced
use iced::widget::text; text("你好").shaping(text::Shaping::Advanced)
button does not have shaping. Do I need to customize a button?
from iced.
haven't tried but I think you cuold put text into the button
from iced.
Button just takes anything that turns into an Element. Strings have a preset into setup for them to turn them into a text with Basic shaping by default. If you need anything more advanced, generally anything above ASCII, then you need to use advanced shaping. If your system doesn't contain a font that has those Glyphs, you may need to add one that does.
from iced.
Related Issues (20)
- MouseArea: enter and exit does not work inside a scrollable if the cursor is not moved
- `on_scroll` is not fired when scrolling via operations
- bug/missing-docs: manual wgpu integration using `iced-runtime` not handling any keyboard/mouse events. HOT 1
- wgpu integration example fails to build in release mode HOT 3
- Unable to Use style(..) method in text_input with latest Iced component API HOT 3
- Unable to register on_open event for combo box
- Font defaulting to default font when bolded HOT 1
- Example does not run (Windows 11) HOT 2
- Slow startup on Linux due to font loading of **all** the system fonts in `/usr/share/fonts` HOT 4
- TOFU characters while rendering unicode string HOT 1
- High CPU usage after 0.12 when leaving key pressed HOT 2
- Unresolved imports, version: 0.12.1, Os: Windows HOT 1
- Panic with widget::text_editor when pressing multiple key at the same time. HOT 1
- nix shell in DEPENDENCIES.md does not work with wayland
- Dynamic Buttons in version 0.12 HOT 1
- Examples just exit after 341c9a3 HOT 2
- Graphical bug in Skia version on text fields when updating the value. HOT 1
- Very high CPU usage in text_editor
- Running `trunk serve` on examples results in blank web pages
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 iced.