#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 { /// /// These values determine how two joining lines are rendered in a stroker. /// public enum StrokerLineJoin { /// /// Used to render rounded line joins. Circular arcs are used to join two lines smoothly. /// Round = 0, /// /// Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the /// triangular region of the corner with a straight line between the outer corners of each stroke. /// Bevel = 1, /// /// Used to render mitered line joins, with fixed bevels if the miter limit is exceeded. The outer edges of the /// strokes for the two segments are extended until they meet at an angle. If the segments meet at too sharp an /// angle (such that the miter would extend from the intersection of the segments a distance greater than the /// product of the miter limit value and the border radius), then a bevel join (see above) is used instead. /// This prevents long spikes being created. generates a miter line join as used in /// PostScript and PDF. /// MiterVariable = 2, /// /// An alias for , retained for backwards compatibility. /// Miter = MiterVariable, /// /// Used to render mitered line joins, with variable bevels if the miter limit is exceeded. The intersection of /// the strokes is clipped at a line perpendicular to the bisector of the angle between the strokes, at the /// distance from the intersection of the segments equal to the product of the miter limit value and the border /// radius. This prevents long spikes being created. generates a mitered line join /// as used in XPS. /// MiterFixed = 3 } }