public IContentLayout LayoutContent(string text, ContentLayoutOptions layoutOptions, bool localize = true)
        {
            IContentLayout result = engine.LayoutContent(text, layoutOptions, localize);

            calls.Add(new ContentLayoutEngineCalls
            {
                Result        = result,
                Text          = text,
                LayoutOptions = layoutOptions,
                Localize      = localize
            });

            return(result);
        }
Example #2
0
 public IContentLayout CreateContentLayout(string text, ContentLayoutOptions contentLayoutOptions, bool localizeText = true)
 {
     return(new ContentLayout(new[] {
         new ContentText(text, Font, Vector2.Zero)
     }));
 }