Exemplo n.º 1
0
        /// <summary>
        /// Add shapeable text object to the list
        /// </summary>
        void IShapeableTextCollector.Add(
            IList <TextShapeableSymbols> shapeables,
            CharacterBufferRange characterBufferRange,
            TextRunProperties textRunProperties,
            MS.Internal.Text.TextInterface.ItemProps textItem,
            ShapeTypeface shapeTypeface,
            double emScale,
            bool nullShape,
            TextFormattingMode textFormattingMode
            )
        {
            Debug.Assert(shapeables != null);

            shapeables.Add(
                new TextShapeableCharacters(
                    characterBufferRange,
                    textRunProperties,
                    textRunProperties.FontRenderingEmSize * emScale,
                    textItem,
                    shapeTypeface,
                    nullShape,
                    textFormattingMode,
                    false
                    )
                );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Construct a shapeable characters object
 /// </summary>
 /// <remarks>
 /// The shapeTypeface parameter can be null if and only if CheckFastPathNominalGlyphs
 /// has previously returned true.
 /// </remarks>
 internal TextShapeableCharacters(
     CharacterBufferRange characterRange,
     TextRunProperties properties,
     double emSize,
     ItemProps textItem,
     ShapeTypeface shapeTypeface,
     bool nullShape,
     TextFormattingMode textFormattingMode,
     bool isSideways
     )
 {
     _isSideways           = isSideways;
     _textFormattingMode   = textFormattingMode;
     _characterBufferRange = characterRange;
     _properties           = properties;
     _emSize        = emSize;
     _textItem      = textItem;
     _shapeTypeface = shapeTypeface;
     _nullShape     = nullShape;
 }