mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-21 04:14:29 +08:00
Fix boldness to be in font points
This commit is contained in:
parent
32573178c3
commit
ebbdaf7336
@ -160,7 +160,7 @@ std::optional<Emboss::Glyph> Private::get_glyph(
|
||||
static_cast<int>(glyph_opt->left_side_bearing / Emboss::SHAPE_SCALE);
|
||||
|
||||
if (font_prop.boldness.has_value()) {
|
||||
float delta = *font_prop.boldness / Emboss::SHAPE_SCALE;
|
||||
float delta = *font_prop.boldness / Emboss::SHAPE_SCALE / font_prop.size_in_mm;
|
||||
glyph_opt->shape = offset_ex(glyph_opt->shape, delta);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user