Commit d25307e4 authored by François Cartegnie's avatar François Cartegnie 🤞

text_renderer: freetype: fix left alignment offset

parent 8b3ebbbb
......@@ -283,6 +283,10 @@ static FT_Vector GetAlignedOffset( const line_desc_t *p_line,
else /* center */
offsets.x = ( i_text_width - p_line->i_width ) / 2;
}
else
{
offsets.x = p_textbbox->xMin - p_line->bbox.xMin;
}
return offsets;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment