Exemplo n.º 1
0
        private void glyphToTex(GraphicalObject glyph, Layout selectedLayout, IndentedTextWriter writer, Graphics g,
                                double text_scale)
        {
            var style     = selectedLayout._EmlRenderInformation[0].GetStyleForObject(glyph);
            var refbounds = new RectangleF();

            //refbounds is later set by lineEndings if the glyph is a reactionglyph; this sets the size of endings drawn
            if (style == null && Layout.GlobalRenderInformation != null && Layout.GlobalRenderInformation.Count > 0)
            {
                style = Layout.GlobalRenderInformation[0].GetStyleForObject(glyph);
            }

            if (style != null)
            {
                var group = style.Group;
                group.ToTex(glyph, writer, g, selectedLayout._EmlRenderInformation[0], group, refbounds, text_scale,
                            _fontTeXTable);
            }
        }
Exemplo n.º 2
0
        private void glyphToTex(GraphicalObject glyph, Layout selectedLayout, IndentedTextWriter writer, Graphics g,
            double text_scale)
        {
            var style = selectedLayout._EmlRenderInformation[0].GetStyleForObject(glyph);
            var refbounds = new RectangleF();
                //refbounds is later set by lineEndings if the glyph is a reactionglyph; this sets the size of endings drawn
            if (style == null && Layout.GlobalRenderInformation != null && Layout.GlobalRenderInformation.Count > 0)
            {
                style = Layout.GlobalRenderInformation[0].GetStyleForObject(glyph);
            }

            if (style != null)
            {
                var group = style.Group;
                group.ToTex(glyph, writer, g, selectedLayout._EmlRenderInformation[0], group, refbounds, text_scale,
                            _fontTeXTable);
            }
        }