mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Fix bespoke formatting lints
This commit is contained in:
@@ -528,14 +528,18 @@ impl Font<'_> {
|
|||||||
pub struct ScaledMetrics {
|
pub struct ScaledMetrics {
|
||||||
/// The DPI part of the screen-space scale.
|
/// The DPI part of the screen-space scale.
|
||||||
pub pixels_per_point: f32,
|
pub pixels_per_point: f32,
|
||||||
|
|
||||||
/// Scale factor, relative to the font's units per em (so, probably much less than 1).
|
/// Scale factor, relative to the font's units per em (so, probably much less than 1).
|
||||||
pub px_scale_factor: f32,
|
pub px_scale_factor: f32,
|
||||||
|
|
||||||
/// Vertical offset, in UI points (not screen-space).
|
/// Vertical offset, in UI points (not screen-space).
|
||||||
pub y_offset_in_points: f32,
|
pub y_offset_in_points: f32,
|
||||||
|
|
||||||
/// This is the distance from the top to the baseline.
|
/// This is the distance from the top to the baseline.
|
||||||
///
|
///
|
||||||
/// Unit: points.
|
/// Unit: points.
|
||||||
pub ascent: f32,
|
pub ascent: f32,
|
||||||
|
|
||||||
/// Height of one row of text in points.
|
/// Height of one row of text in points.
|
||||||
///
|
///
|
||||||
/// Returns a value rounded to [`emath::GUI_ROUNDING`].
|
/// Returns a value rounded to [`emath::GUI_ROUNDING`].
|
||||||
|
|||||||
Reference in New Issue
Block a user