Perhaps I am doing something incorrect but Textlayout seems to be having issues with handling white spaces. I am creating labels and when I specify the label as "MyLabel", everything works fine. When, however, I specify the label as "My Label", only "My La" is displayed.
I am using
TextLayout textLayout0 = new TextLayout(Globals.DirectWriteFactory, label0, textFormat, 999, textFormat.FontSize);
RenderTarget.DrawTextLayout(labelAnchor0.ToVector2(), textLayout0, myBrush);
Any suggestion would be appreciated. Thank you.
Comment