private void AdjustTextRenderHint(Gma.CodeCloud.Controls.Geometry.LayoutItem layoutItem)
 {
     // Add anti-aliasing for larger font sizes
     if (GetFontSize(layoutItem.Word) > 10)
     {
         m_Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
     }
     else
     {
         m_Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixel;
     }
 }
            public override void DrawEmphasized(Gma.CodeCloud.Controls.Geometry.LayoutItem layoutItem)
            {
                AdjustTextRenderHint(layoutItem);

                Font  font  = GetFont(layoutItem.Word);
                Color color = GetPresudoRandomColorFromPalette(layoutItem);

                Color backColor = ColorUtil.LighterDrawing(color, 0.7f);
                Color textColor = ColorUtil.DarkerDrawing(color, 0.2f);

                using (Brush brush = new SolidBrush(backColor))
                {
                    m_Graphics.FillRectangle(brush, Rectangle.Ceiling(layoutItem.Rectangle));
                }

                Point point = new Point((int)layoutItem.Rectangle.X, (int)layoutItem.Rectangle.Y);

                TextRenderer.DrawText(m_Graphics, layoutItem.Word.Text, font, point, textColor, Color.Transparent);
            }
            public override void Draw(Gma.CodeCloud.Controls.Geometry.LayoutItem layoutItem)
            {
                AdjustTextRenderHint(layoutItem);

                base.Draw(layoutItem);
            }