Benjamin Bouvier
e22c242d17
Use ab_glyph instead of rusttype for font rendering ( #490 )
...
* Use ab_glyph instead of rusttype for font rendering
* address review feedback
2021-06-24 12:13:57 +02:00
Emil Ernerfeldt
778bcc1ef7
Style tweaks ( #450 )
...
* Tweak style
More compact, less round, less noisy
* Button text is now same size as body text
* The rounder corners are now less rounded
* Collapsing headers no longer have a frame around them
* Combo-boxes looks better when opened
* Slightly more muted colors
* Remove extra line spacing after `\n` (i.e. between paragraphs)
* Thinner scrollbars
* Tweak light mode
* Tweak shadows
* Fix broken doc link
* Add style tweak to CHANGELOG
2021-06-12 15:53:56 +02:00
Emil Ernerfeldt
085233f907
Improve various documentation
2021-05-20 22:12:17 +02:00
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
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
36d9f8a7c7
Add sanity check on pixels_per_point range
2021-03-17 08:44:00 +01:00
Emil Ernerfeldt
fc0bec44ba
Remove Fonts::default() implementation
2021-02-08 23:05:48 +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
Emil Ernerfeldt
26d576f510
Break out mod paint into new crate epaint
2021-01-10 15:42:46 +01:00