예제 #1
0
        public GlyphPathBuilderBase(Typeface typeface)
        {
            _typeface = typeface;
            this.UseTrueTypeInstructions = true;//default?
            _recentPixelScale            = 1;

            if (typeface.IsCffFont)
            {
                _cffEvalEngine = new OpenFont.CFF.CffEvaluationEngine();
            }
        }
        public GlyphOutlineBuilderBase(Typeface typeface)
        {
            _typeface = typeface;
            this.UseTrueTypeInstructions = true;//default?
            _recentPixelScale            = 1;

            if (typeface.IsCffFont)
            {
                _cffEvalEngine = new OpenFont.CFF.CffEvaluationEngine();
            }

            HasColorInfo = typeface.COLRTable != null && typeface.CPALTable != null;
        }