StyleFlags.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #region MIT License
  2. /*Copyright (c) 2012 Robert Rouhani <robert.rouhani@gmail.com>
  3. SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
  4. Permission is hereby granted, free of charge, to any person obtaining a copy of
  5. this software and associated documentation files (the "Software"), to deal in
  6. the Software without restriction, including without limitation the rights to
  7. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  8. of the Software, and to permit persons to whom the Software is furnished to do
  9. so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in all
  11. copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  18. SOFTWARE.*/
  19. #endregion
  20. using System;
  21. namespace SharpFont
  22. {
  23. /// <summary>
  24. /// A list of bit-flags used to indicate the style of a given face. These are used in the ‘style_flags’ field of
  25. /// <see cref="Face"/>.
  26. /// </summary>
  27. /// <remarks>
  28. /// The style information as provided by FreeType is very basic. More details are beyond the scope and should be
  29. /// done on a higher level (for example, by analyzing various fields of the ‘OS/2’ table in SFNT based fonts).
  30. /// </remarks>
  31. [Flags]
  32. public enum StyleFlags
  33. {
  34. /// <summary>
  35. /// No style flags.
  36. /// </summary>
  37. None = 0x00,
  38. /// <summary>
  39. /// Indicates that a given face style is italic or oblique.
  40. /// </summary>
  41. Italic = 0x01,
  42. /// <summary>
  43. /// Indicates that a given face is bold.
  44. /// </summary>
  45. Bold = 0x02
  46. }
  47. }