Beispiel #1
0
            protected override void AssignDefaultValuesToSceneNode(SceneNode2D node)
            {
                var t = node as TextNode2D;

                t.Text          = Text == null ? "" : Text;
                t.FontFamily    = FontFamily == null ? DefaultFont : FontFamily;
                t.FontWeight    = FontWeight.ToDXFontWeight();
                t.FontStyle     = FontStyle.ToDXFontStyle();
                t.FontSize      = FontSize;
                t.TextAlignment = TextAlignment.ToD2DTextAlignment();
                t.FlowDirection = FlowDirection.ToD2DFlowDir();
            }