pub fn height_metrics(&self, text_size: f32) -> HeightMetrics {
        let v_metrics = self.font.v_metrics(Scale::uniform(text_size));
        HeightMetrics {
            ascent: v_metrics.ascent,
            descent: v_metrics.descent,
            line_gap: v_metrics.line_gap,
        }
    }
/// Retrieves height metrics for this font at the given size. This includes the max ascent,
/// descent and the recommended line gap.
Retrieves height metrics for this font at the given size. This includes the max ascent,
descent and the recommended line gap.
Retrieves height metrics for this font at the given size . This includes the max ascent descent and the recommended line gap .
pub fn height_metrics(&self, text_size: f32) -> HeightMetrics {
        let v_metrics = self.font.v_metrics(Scale::uniform(text_size));
        HeightMetrics {
            ascent: v_metrics.ascent,
            descent: v_metrics.descent,
            line_gap: v_metrics.line_gap,
        }
    }
pub fn height_metrics ( & self , text_size : f32 ) -> HeightMetrics { let v_metrics = self . font . v_metrics ( Scale :: uniform ( text_size ) ) ; HeightMetrics { ascent : v_metrics . ascent , descent : v_metrics . descent , line_gap : v_metrics . line_gap , } }
Retrieves height metrics for this font at the given size.
Retrieves height metrics for this font at the given size .
&self
text_size
f32
&self
text_size
f32