SourceClass Galley
from egui import Galleyclass Galley:Text that has been laid out, ready for painting.
You can create a Galley using egui.FontsView.layout_job;
Needs to be recreated if the underlying font atlas texture changes, which
happens under the following conditions:
- pixels_per_point or max_texture_size change. These parameters are set
in egui.text.Fonts.begin_pass. When using egui they are set
from egui.InputState and can change at any time.
- The atlas has become full. This can happen any time a new glyph is added
to the atlas, which in turn can happen any time new text is laid out.
The name comes from typography, where a "galley" is a metal tray containing a column of set type, usually the size of a page of text.
Methods§
Sourcedef intrinsic_size(self, /) -> Vec2§
This is the size that a non-wrapped, non-truncated, non-justified version of the text would have.
Useful for advanced layouting.
Sourcedef size(self, /) -> Vec2§
Sourcedef text(self, /) -> str§
The full, non-elided text of the input job.