Emil Ernerfeldt
|
7b0f991b20
|
Improve docs concerning custom fonts, themes and accessibility
Closes https://github.com/emilk/egui/pull/370
Closes https://github.com/emilk/egui/issues/372
|
2021-05-11 14:56:27 +02:00 |
|
Emil Ernerfeldt
|
66122e4c9a
|
Decrease indentation with shift-tab
|
2021-05-02 20:09:11 +02:00 |
|
Emil Ernerfeldt
|
bf8ce774cc
|
Don't draw bidi control characters
Closes https://github.com/emilk/egui/issues/336
|
2021-05-02 19:50:06 +02:00 |
|
Emil Ernerfeldt
|
7da9928548
|
Clean up new code editor code
|
2021-05-02 19:28:02 +02:00 |
|
Cristian Dinu
|
35c7b09285
|
Tab identation for multiline text edit (#246)
Lock focus on multiline text edit, and insert tabs on tab char
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
|
2021-05-02 18:56:28 +02:00 |
|
Emil Ernerfeldt
|
d848b2a664
|
Add TextEdit::password to hide input characters
|
2021-04-02 09:58:55 +02:00 |
|
Emil Ernerfeldt
|
fe0d31204e
|
Small optimization of tesselate_text
|
2021-04-01 23:07:15 +02:00 |
|
Emil Ernerfeldt
|
d7f9e2246c
|
Add a bunch on inline annotations
|
2021-04-01 23:07:15 +02:00 |
|
Emil Ernerfeldt
|
4808da44a2
|
Optimize: more inlining and more use of AHashMap
No real gains, but it didn't hurt either
|
2021-03-31 17:06:12 +02:00 |
|
Emil Ernerfeldt
|
0802a9d9c0
|
Optimize: get glyph uv rects during layouts instead of in tesselation
This allows them to be cached, saving around 20% total CPU.
It also makes the code more nicely structured
|
2021-03-30 21:07:19 +02:00 |
|
Emil Ernerfeldt
|
1c60dc8d66
|
Pass around Arc<Galley> to avoid copying a lot of data
|
2021-03-29 22:49:54 +02:00 |
|
Emil Ernerfeldt
|
94baf98eab
|
Add a galley cache to Fonts to avoid doing the same layout each frame
|
2021-03-29 22:49:48 +02:00 |
|
Emil Ernerfeldt
|
d4e5133da2
|
refactor fonts: put TextStyle in Galley instead of in Shape::Text
|
2021-03-29 21:24:09 +02:00 |
|
Emil Ernerfeldt
|
ade41403b5
|
refactor fonts: do all text layout via the Fonts struct
|
2021-03-29 21:12:11 +02:00 |
|
Emil Ernerfeldt
|
46425f1e38
|
Optimize: add #[inline(always)] to various low-level things
saves up to 20% (text tesselation), and at least 5% overall
|
2021-03-28 23:16:19 +02:00 |
|
Emil Ernerfeldt
|
cbe6faa83b
|
Render tab character (\t) as four spaces
|
2021-03-23 20:06:52 +01:00 |
|
Emil Ernerfeldt
|
e20e3baa98
|
Bug-fixes related to recent layout rewrite
|
2021-03-21 14:48:12 +01:00 |
|
Emil Ernerfeldt
|
36d9f8a7c7
|
Add sanity check on pixels_per_point range
|
2021-03-17 08:44:00 +01:00 |
|
Emil Ernerfeldt
|
30885b85f9
|
Derive PartialEq for Vertex, Mesh, Row, Galley and Shape
|
2021-03-13 12:58:17 +01:00 |
|
Emil Ernerfeldt
|
fc0bec44ba
|
Remove Fonts::default() implementation
|
2021-02-08 23:05:48 +01:00 |
|
Emil Ernerfeldt
|
1c415bd8fe
|
Add benchmark for text layout and tesselation
|
2021-02-08 22:53:31 +01:00 |
|
Emil Ernerfeldt
|
8189a78284
|
Improve text wrapping related to first line indentation and logograms
|
2021-02-06 15:19:04 +01:00 |
|
Emil Ernerfeldt
|
91ce18d62f
|
Widgets will now always line break at \n characters
|
2021-02-06 14:50:03 +01:00 |
|
Emil Ernerfeldt
|
7336df53b7
|
Tweak line spacing for new paragraphs
|
2021-01-31 16:42:54 +01:00 |
|
Emil Ernerfeldt
|
b647592a5a
|
Wrap text at dashes, punctuations or anywhere if necessary
Closes https://github.com/emilk/egui/issues/55
Supersedes https://github.com/emilk/egui/pull/104
|
2021-01-31 15:57:19 +01:00 |
|
Emil Ernerfeldt
|
96fb0771a2
|
Fix text layout bug: empty text would lack first row indentation
|
2021-01-27 20:17:16 +01:00 |
|
Paul Shen
|
18b9214575
|
Prefer overlapping row in galley cursor_from_pos (#127)
|
2021-01-24 15:05:59 +01:00 |
|
Emil Ernerfeldt
|
1f2aebc25a
|
Improve documentation
|
2021-01-17 12:24:13 +01:00 |
|
Emil Ernerfeldt
|
b10dcf5012
|
[style] Tweak vertical text alignment
|
2021-01-13 22:08:35 +01:00 |
|
n2
|
449192e5fb
|
Text wrap correctly on Chinese chraracter (#104)
* Text wrap correctly on Chinese chrarcter
* Text wrap correctly on Chinese chraracter, checked by a stand-alone function
|
2021-01-12 10:15:51 +01:00 |
|
Emil Ernerfeldt
|
26d576f510
|
Break out mod paint into new crate epaint
|
2021-01-10 15:42:46 +01:00 |
|