Only advance if glyph is not part of a multiple glyph sequence.
This commit is contained in:
parent
f8739c7504
commit
f67c6e4fd4
1 changed files with 5 additions and 1 deletions
|
@ -229,9 +229,13 @@ bool placement_finder_ng::find_point_placement(pixel_position pos)
|
||||||
double dx = x * cosa_ - y * sina_;
|
double dx = x * cosa_ - y * sina_;
|
||||||
double dy = x * sina_ + y * cosa_;
|
double dy = x * sina_ + y * cosa_;
|
||||||
glyphs->push_back(*glyph_itr, pixel_position(dx, dy), angle_); //TODO: Store cosa, sina instead
|
glyphs->push_back(*glyph_itr, pixel_position(dx, dy), angle_); //TODO: Store cosa, sina instead
|
||||||
|
if (glyph_itr->width)
|
||||||
|
{
|
||||||
|
//Only advance if glyph is not part of a multiple glyph sequence
|
||||||
x += glyph_itr->width + glyph_itr->format->character_spacing;
|
x += glyph_itr->width + glyph_itr->format->character_spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
placements_.push_back(glyphs);
|
placements_.push_back(glyphs);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue