#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 used to specify character sets supported by charmaps. /// Used in the FT_Select_Charmap API function. /// /// /// Despite the name, this enumeration lists specific character repertories /// (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, /// etc.). /// /// Other encodings might be defined in the future. /// [CLSCompliant(false)] public enum Encoding : uint { /// /// The encoding value 0 is reserved. /// None = 0, /// /// Corresponds to the Microsoft Symbol encoding, used to encode /// mathematical symbols in the 32..255 character code range. /// /// MicrosoftSymbol = ('s' << 24 | 'y' << 16 | 'm' << 8 | 'b'), /// /// Corresponds to the Unicode character set. This value covers all /// versions of the Unicode repertoire, including ASCII and Latin-1. /// Most fonts include a Unicode charmap, but not all of them. /// /// For example, if you want to access Unicode value U+1F028 (and the /// font contains it), use value 0x1F028 as the input value for /// FT_Get_Char_Index. /// Unicode = ('u' << 24 | 'n' << 16 | 'i' << 8 | 'c'), /// /// Corresponds to Japanese SJIS encoding. /// /// Sjis = ('s' << 24 | 'j' << 16 | 'i' << 8 | 's'), /// /// Corresponds to an encoding system for Simplified Chinese as used /// used in mainland China. /// GB2312 = ('g' << 24 | 'b' << 16 | ' ' << 8 | ' '), /// /// Corresponds to an encoding system for Traditional Chinese as used /// in Taiwan and Hong Kong. /// Big5 = ('b' << 24 | 'i' << 16 | 'g' << 8 | '5'), /// /// Corresponds to the Korean encoding system known as Wansung. /// /// Wansung = ('w' << 24 | 'a' << 16 | 'n' << 8 | 's'), /// /// The Korean standard character set (KS C 5601-1992), which /// corresponds to MS Windows code page 1361. This character set /// includes all possible Hangeul character combinations. /// Johab = ('j' << 24 | 'o' << 16 | 'h' << 8 | 'a'), /// /// Corresponds to the Adobe Standard encoding, as found in Type 1, /// CFF, and OpenType/CFF fonts. It is limited to 256 character codes. /// AdobeStandard = ('A' << 24 | 'D' << 16 | 'O' << 8 | 'B'), /// /// Corresponds to the Adobe Expert encoding, as found in Type 1, CFF, /// and OpenType/CFF fonts. It is limited to 256 character codes. /// AdobeExpert = ('A' << 24 | 'D' << 16 | 'B' << 8 | 'E'), /// /// Corresponds to a custom encoding, as found in Type 1, CFF, and /// OpenType/CFF fonts. It is limited to 256 character codes. /// AdobeCustom = ('A' << 24 | 'D' << 16 | 'B' << 8 | 'C'), /// /// Corresponds to a Latin-1 encoding as defined in a Type 1 PostScript /// font. It is limited to 256 character codes. /// AdobeLatin1 = ('l' << 24 | 'a' << 16 | 't' << 8 | '1'), /// /// This value is deprecated and was never used nor reported by /// FreeType. Don't use or test for it. /// [Obsolete("Never used nor reported by FreeType")] OldLatin2 = ('l' << 24 | 'a' << 16 | 't' << 8 | '2'), /// /// Corresponds to the 8-bit Apple roman encoding. Many TrueType and /// OpenType fonts contain a charmap for this encoding, since older /// versions of Mac OS are able to use it. /// AppleRoman = ('a' << 24 | 'r' << 16 | 'm' << 8 | 'n'), } }