SkFontTypes.h 782 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright 2018 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkFontTypes_DEFINED
  8. #define SkFontTypes_DEFINED
  9. enum class SkTextEncoding {
  10. kUTF8, //!< uses bytes to represent UTF-8 or ASCII
  11. kUTF16, //!< uses two byte words to represent most of Unicode
  12. kUTF32, //!< uses four byte words to represent all of Unicode
  13. kGlyphID, //!< uses two byte words to represent glyph indices
  14. };
  15. enum class SkFontHinting {
  16. kNone, //!< glyph outlines unchanged
  17. kSlight, //!< minimal modification to improve constrast
  18. kNormal, //!< glyph outlines modified to improve constrast
  19. kFull, //!< modifies glyph outlines for maximum constrast
  20. };
  21. #endif