SkPaintDefaults.h 746 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2012 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 SkPaintDefaults_DEFINED
  8. #define SkPaintDefaults_DEFINED
  9. #include "include/core/SkFontTypes.h"
  10. /**
  11. * Any of these can be specified by the build system (or SkUserConfig.h)
  12. * to change the default values for a SkPaint. This file should not be
  13. * edited directly.
  14. */
  15. #ifndef SkPaintDefaults_TextSize
  16. #define SkPaintDefaults_TextSize SkIntToScalar(12)
  17. #endif
  18. #ifndef SkPaintDefaults_Hinting
  19. #define SkPaintDefaults_Hinting SkFontHinting::kNormal
  20. #endif
  21. #ifndef SkPaintDefaults_MiterLimit
  22. #define SkPaintDefaults_MiterLimit SkIntToScalar(4)
  23. #endif
  24. #endif