#region MIT License /*Copyright (c) 2012 Robert Rouhani SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/ #endregion using System; namespace SharpFont { /// /// An enumeration type that lists the render modes supported by FreeType 2. Each mode corresponds to a specific /// type of scanline conversion performed on the outline. /// /// For bitmap fonts and embedded bitmaps the field in the /// structure gives the format of the returned bitmap. /// /// All modes except use 256 levels of opacity. /// /// /// The LCD-optimized glyph bitmaps produced by can be filtered to reduce /// color-fringes by using (not active in the default builds). It is up to the /// caller to either call (if available) or do the filtering itself. /// /// The selected render mode only affects vector glyphs of a font. Embedded bitmaps often have a different pixel /// mode like . You can use to transform them into 8-bit /// pixmaps. /// public enum RenderMode { /// /// This is the default render mode; it corresponds to 8-bit anti-aliased bitmaps. /// Normal = 0, /// /// This is equivalent to . It is only defined as a separate value because /// render modes are also used indirectly to define hinting algorithm selectors. /// /// Light, /// /// This mode corresponds to 1-bit bitmaps (with 2 levels of opacity). /// Mono, /// /// This mode corresponds to horizontal RGB and BGR sub-pixel displays like LCD screens. It produces 8-bit /// bitmaps that are 3 times the width of the original glyph outline in pixels, and which use the /// mode. /// Lcd, /// /// This mode corresponds to vertical RGB and BGR sub-pixel displays (like PDA screens, rotated LCD displays, /// etc.). It produces 8-bit bitmaps that are 3 times the height of the original glyph outline in pixels and /// use the mode. /// VerticalLcd, } }