File: misc\GDI\TextPaddingOptions.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="TextFormatFlags.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
#if WINFORMS_NAMESPACE
namespace System.Windows.Forms.Internal
#elif DRAWING_NAMESPACE
namespace System.Drawing.Internal
#else
namespace System.Experimental.Gdi
#endif
{
    using System;
 
    /// <devdoc>
    ///     Adds padding related to the drawing bounding box, computed according to the font size.
    /// </devdoc>
#if WINFORMS_PUBLIC_GRAPHICS_LIBRARY
    public
#else
    internal
#endif
    enum TextPaddingOptions
    {
        // Add some extra points to account for some glyphs overhanging (like for letter f in some fonts or 
        // when italized).
        // For an illustration, type letter f in Wordpad and make it 72-point "Times New Roman" italic
        // observe that the lower left part of the letter is clipped.  Also, try selecting the letter,
        // both the lower-left and the upper-right parts are clipped.
        // The default value.
        GlyphOverhangPadding  = 0x00000000,
 
        NoPadding = 0x00000001,
 
        // Adds padding to the text bounding box (inflating the bounding box).
        // This is to render text similar to GDI+.
        // Implies GlypOverhangPadding.
        LeftAndRightPadding = 0x00000002
    }
}