Yet another character_spacing/scale_factor fix.

This commit is contained in:
Hermann Kraus 2013-03-24 15:37:06 +01:00
parent c464db99db
commit 722b84e53a

View file

@ -373,7 +373,7 @@ bool placement_finder::single_line_placement(vertex_cache &pp, text_upright_e or
return false; return false;
} }
current_cluster = glyph.char_index; current_cluster = glyph.char_index;
last_glyph_spacing = glyph.format->character_spacing; last_glyph_spacing = glyph.format->character_spacing * scale_factor_;
//Only calculate new angle at the start of each cluster! //Only calculate new angle at the start of each cluster!
angle = normalize_angle(off_pp.angle(sign * layout_.cluster_width(current_cluster))); angle = normalize_angle(off_pp.angle(sign * layout_.cluster_width(current_cluster)));
rot.init(angle); rot.init(angle);