Ejemplo n.º 1
0
        public TextPipeline(FontDevice fontDevice)
        {
            Contract.Requires(fontDevice != null);

            _FontDevice = fontDevice;

            _TextAnalyzer = new Analyzer(_FontDevice.Factory);
            _AggregatorSink = new AggregatorSink();
            _Aggregator = new Aggregator(_AggregatorSink);
            _ShaperSink = new ShaperSink();
            _Shaper = new Shaper(_FontDevice, _ShaperSink);
            _FormatterSink = new FormatterSink();
            _Formatter = new Formatter(_FormatterSink);
            _TypesetterSink = new TypesetterSink();
            _Typesetter = new Typesetter(_TypesetterSink);
            _GeometryCache = new TextGeometryCache();
        }
Ejemplo n.º 2
0
        /// <summary>
        ///   This constructor links a new instance of this class to an output sink.
        /// </summary>
        /// <param name="outputSink"> This parameter references the output sink where results are stored. </param>
        public Aggregator(AggregatorSink outputSink)
        {
            Contract.Requires(outputSink != null);

            _OutputSink = outputSink;
        }