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; }
static GraphPrinter() { SubScriptTypography = new CanvasTypography(); SubScriptTypography.AddFeature(CanvasTypographyFeatureName.Subscript, 1u); }
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; }