void EnsureTypography()
        {
            if (!typographyChanged)
            {
                return;
            }

            CanvasTypography typography = null;

            if (CurrentTypographyOption.Name != CanvasTypographyFeatureName.None)
            {
                typography = new CanvasTypography();
                typography.AddFeature(CurrentTypographyOption.Name, 1u);
            }

            textLayout.SetTypography(0, testString.Length, typography);

            typographyChanged = false;
        }
Beispiel #2
0
 static GraphPrinter()
 {
     SubScriptTypography = new CanvasTypography();
     SubScriptTypography.AddFeature(CanvasTypographyFeatureName.Subscript, 1u);
 }
Beispiel #3
0
        void EnsureTypography()
        {
            if (!typographyChanged)
                return;

            CanvasTypography typography = null;
            
            if (CurrentTypographyOption != CanvasTypographyFeatureName.None)
            {
                typography = new CanvasTypography();
                typography.AddFeature(CurrentTypographyOption, 1u);
            }

            textLayout.SetTypography(0, testString.Length, typography);

            typographyChanged = false;
        }