コード例 #1
0
        private void LoadTypographyFeatures()
        {
            _typographyFeatures = TypographyAnalyzer.GetSupportedTypographyFeatures(this);
            var xaml = _typographyFeatures.Where(f => TypographyBehavior.IsXamlSupported(f.Feature)).ToList();
            if (xaml.Count > 0)
                xaml.Insert(0, new TypographyFeatureInfo(CanvasTypographyFeatureName.None));

            _xamlTypographyFeatures = xaml;
        }
コード例 #2
0
        public FontAnalysis GetAnalysis()
        {
            if (_analysis == null)
            {
                _analysis = TypographyAnalyzer.Analyze(this);
            }

            return(_analysis);
        }
コード例 #3
0
        private void LoadTypographyFeatures()
        {
            var features = TypographyAnalyzer.GetSupportedTypographyFeatures(this);

            var xaml = features.Where(f => TypographyBehavior.IsXamlSingleGlyphSupported(f.Feature)).ToList();

            if (xaml.Count > 0)
            {
                xaml.Insert(0, TypographyFeatureInfo.None);
            }
            _xamlTypographyFeatures = xaml;

            if (features.Count > 0)
            {
                features.Insert(0, TypographyFeatureInfo.None);
            }
            _typographyFeatures = features;
        }
コード例 #4
0
 public FontAnalysis GetAnalysis()
 {
     return(_analysis ??= TypographyAnalyzer.Analyze(this));
 }