#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 { /// /// FreeType error codes. /// public enum Error { /// No error. Ok = 0x00, /// Cannot open resource. CannotOpenResource = 0x01, /// Unknown file format. UnknownFileFormat = 0x02, /// Broken file. InvalidFileFormat = 0x03, /// Invalid FreeType version. InvalidVersion = 0x04, /// Module version is too low. LowerModuleVersion = 0x05, /// Invalid argument. InvalidArgument = 0x06, /// Unimplemented feature. UnimplementedFeature = 0x07, /// Broken table. InvalidTable = 0x08, /// Broken offset within table. InvalidOffset = 0x09, /// Array allocation size too large. ArrayTooLarge = 0x0A, /// Invalid glyph index. InvalidGlyphIndex = 0x10, /// Invalid character code. InvalidCharacterCode = 0x11, /// Unsupported glyph image format. InvalidGlyphFormat = 0x12, /// Cannot render this glyph format. CannotRenderGlyph = 0x13, /// Invalid outline. InvalidOutline = 0x14, /// Invalid composite glyph. InvalidComposite = 0x15, /// Too many hints. TooManyHints = 0x16, /// Invalid pixel size. InvalidPixelSize = 0x17, /// Invalid object handle. InvalidHandle = 0x20, /// Invalid library handle. InvalidLibraryHandle = 0x21, /// Invalid module handle. InvalidDriverHandle = 0x22, /// Invalid face handle. InvalidFaceHandle = 0x23, /// Invalid size handle. InvalidSizeHandle = 0x24, /// Invalid glyph slot handle. InvalidSlotHandle = 0x25, /// Invalid charmap handle. InvalidCharMapHandle = 0x26, /// Invalid cache manager handle. InvalidCacheHandle = 0x27, /// Invalid stream handle. InvalidStreamHandle = 0x28, /// Too many modules. TooManyDrivers = 0x30, /// Too many extensions. TooManyExtensions = 0x31, /// Out of memory. OutOfMemory = 0x40, /// Unlisted object. UnlistedObject = 0x41, /// Cannot open stream. CannotOpenStream = 0x51, /// Invalid stream seek. InvalidStreamSeek = 0x52, /// Invalid stream skip. InvalidStreamSkip = 0x53, /// Invalid stream read. InvalidStreamRead = 0x54, /// Invalid stream operation. InvalidStreamOperation = 0x55, /// Invalid frame operation. InvalidFrameOperation = 0x56, /// Nested frame access. NestedFrameAccess = 0x57, /// Invalid frame read. InvalidFrameRead = 0x58, /// Raster uninitialized. RasterUninitialized = 0x60, /// Raster corrupted. RasterCorrupted = 0x61, /// Raster overflow. RasterOverflow = 0x62, /// Negative height while rastering. RasterNegativeHeight = 0x63, /// Too many registered caches. TooManyCaches = 0x70, /// Invalid opcode. InvalidOpCode = 0x80, /// Too few arguments. TooFewArguments = 0x81, /// Stack overflow. StackOverflow = 0x82, /// Code overflow. CodeOverflow = 0x83, /// Bad argument. BadArgument = 0x84, /// Division by zero. DivideByZero = 0x85, /// Invalid reference. InvalidReference = 0x86, /// Found debug opcode. DebugOpCode = 0x87, /// Found ENDF opcode in execution stream. EndfInExecStream = 0x88, /// Nested DEFS. NestedDefs = 0x89, /// Invalid code range. InvalidCodeRange = 0x8A, /// Execution context too long. ExecutionTooLong = 0x8B, /// Too many function definitions. TooManyFunctionDefs = 0x8C, /// Too many instruction definitions. TooManyInstructionDefs = 0x8D, /// SFNT font table missing. TableMissing = 0x8E, /// Horizontal header (hhea) table missing. HorizHeaderMissing = 0x8F, /// Locations (loca) table missing. LocationsMissing = 0x90, /// Name table missing. NameTableMissing = 0x91, /// Character map (cmap) table missing. CMapTableMissing = 0x92, /// Horizontal metrics (hmtx) table missing. HmtxTableMissing = 0x93, /// PostScript (post) table missing. PostTableMissing = 0x94, /// Invalid horizontal metrics. InvalidHorizMetrics = 0x95, /// Invalid character map (cmap) format. InvalidCharMapFormat = 0x96, /// Invalid ppem value. InvalidPPem = 0x97, /// Invalid vertical metrics. InvalidVertMetrics = 0x98, /// Could not find context. CouldNotFindContext = 0x99, /// Invalid PostScript (post) table format. InvalidPostTableFormat = 0x9A, /// Invalid PostScript (post) table. InvalidPostTable = 0x9B, /// Opcode syntax error. SyntaxError = 0xA0, /// Argument stack underflow. StackUnderflow = 0xA1, /// Ignore this error. Ignore = 0xA2, /// No Unicode glyph name found. NoUnicodeGlyphName = 0xA3, /// `STARTFONT' field missing. MissingStartfontField = 0xB0, /// `FONT' field missing. MissingFontField = 0xB1, /// `SIZE' field missing. MissingSizeField = 0xB2, /// `FONTBOUNDINGBOX' field missing. MissingFontboudingboxField = 0xB3, /// `CHARS' field missing. MissingCharsField = 0xB4, /// `STARTCHAR' field missing. MissingStartcharField = 0xB5, /// `ENCODING' field missing. MissingEncodingField = 0xB6, /// `BBX' field missing. MissingBbxField = 0xB7, /// `BBX' too big. BbxTooBig = 0xB8, /// Font header corrupted or missing fields. CorruptedFontHeader = 0xB9, /// Font glyphs corrupted or missing fields. CorruptedFontGlyphs = 0xBA } }