Skip to content

Commit 9ddede9

Browse files
committed
A little more information
1 parent 160b57e commit 9ddede9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

profile-opentype/src/checks/opentype/monospace.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ fn monospace(t: &Testable, context: &Context) -> CheckFnResult {
118118
problems.push(Status::warn(
119119
"mono-outliers",
120120
&format!(
121-
"Font is monospaced but {unusual_count} glyphs ({outliers_ratio:.2}%) have a different width. You should check the widths of: {}",
121+
"Font is monospaced (common width = {}) but {unusual_count} glyphs ({outliers_ratio:.2}%) have a different width. You should check the widths of: {}",
122+
statistics.most_common_width,
122123
bullet_list(context, unusually_spaced_glyphs.iter().map(|(gid, metric)| {
123124
let glyphname = font.glyph_name_for_id_synthesise(GlyphId::new(*gid as u32));
124125
format!("{} ({}), width: {}", glyphname, gid, metric.advance())

0 commit comments

Comments
 (0)