Exemple #1
0
        public void DrawGlyphsAtPoints(ForEach <char> glyphs, TestFont font, ForEach <PointF> points, Structures.Color?color)
        {
            var zipped = glyphs.Zip(points);
            var bounds = TestTypesettingContexts.Instance.GlyphBoundsProvider.GetBoundingRectsForGlyphs(font, glyphs, zipped.Count);

            foreach (var((glyph, point), bound) in zipped.Zip(bounds, ValueTuple.Create))
            {
                Checker.ConsoleDrawRectangle(new Rectangle((int)(point.X + trans.X), (int)(point.Y + trans.Y), (int)bound.Width, (int)bound.Height), glyph, color);
            }
        }