pub fn align(
buffer: &mut Buffer,
font_system: &mut FontSystem,
alignment: Alignment,
) -> Size
Expand description
Aligns the given [cosmic_text::Buffer
] with the given [Alignment
]
and returns its minimum [Size
].
pub fn align(
buffer: &mut Buffer,
font_system: &mut FontSystem,
alignment: Alignment,
) -> Size
Aligns the given [cosmic_text::Buffer
] with the given [Alignment
]
and returns its minimum [Size
].