Fixed drawing text block element when text size is bigger than block size

fonts_experiment
Valeriy Mironov 2017-12-14 22:51:00 +02:00
parent f4426b09aa
commit b5916ab5ba
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ namespace WatchFace.Parser.Helpers
else
y = (box.Top + box.Bottom - bitmap.Height) >> 1;
if (x < box.Left) x = box.Left;
if (y < box.Top) y = box.Top;
foreach (var image in images)
{
drawer.DrawImage(image, x, y);