apply scale factor to line spacing
This commit is contained in:
parent
cfc6b37d71
commit
b930a5e7f7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ text_line::text_line(text_line && rhs)
|
|||
|
||||
void text_line::add_glyph(glyph_info && glyph, double scale_factor_)
|
||||
{
|
||||
line_height_ = std::max(line_height_, glyph.line_height() + glyph.format->line_spacing);
|
||||
line_height_ = std::max(line_height_, glyph.line_height() + glyph.format->line_spacing * scale_factor_);
|
||||
double advance = glyph.advance();
|
||||
if (glyphs_.empty())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue