| File: misc\GDI\TextPaddingOptions.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Forms.Internal; /// <summary> /// Adds padding related to the drawing bounding box, computed according to the font size. /// </summary> internal enum TextPaddingOptions { // Add some extra points to account for some glyphs overhanging (like for letter f in some fonts or // when italicized). // 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 GlyphOverhangPadding. LeftAndRightPadding = 0x00000002 }