Center the vector ORCID badge label
This commit is contained in:
1 parent
ec6826619b
commit
d73d6334fc
2 files changed
+2
-2
No files matched your search
@@ -646,7 +646,7 @@ impl Element for PositionedPages {
|
|||||||
);
|
);
|
||||||
badge_area.print_str(
|
badge_area.print_str(
|
||||||
&context.font_cache,
|
&context.font_cache,
|
||||||
Position::new(0.55, 0.6),
|
Position::new(1.1, -0.05),
|
||||||
Style::new()
|
Style::new()
|
||||||
.with_font_size(4)
|
.with_font_size(4)
|
||||||
.with_color(genpdf::style::Color::Rgb(255, 255, 255)),
|
.with_color(genpdf::style::Color::Rgb(255, 255, 255)),
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ fn write_badge(output: &mut String, x: i64, y: i64) {
|
|||||||
scaled_units_to_mm(x),
|
scaled_units_to_mm(x),
|
||||||
scaled_units_to_mm(y),
|
scaled_units_to_mm(y),
|
||||||
scaled_units_to_mm(x) + 0.7,
|
scaled_units_to_mm(x) + 0.7,
|
||||||
scaled_units_to_mm(y) + 2.4,
|
scaled_units_to_mm(y) + 1.4,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user