SkFontLCDConfig.cpp 779 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2009 The Android Open Source Project
  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. #include "include/core/SkFontLCDConfig.h"
  8. static SkFontLCDConfig::LCDOrientation gLCDOrientation = SkFontLCDConfig::kHorizontal_LCDOrientation;
  9. static SkFontLCDConfig::LCDOrder gLCDOrder = SkFontLCDConfig::kRGB_LCDOrder;
  10. SkFontLCDConfig::LCDOrientation SkFontLCDConfig::GetSubpixelOrientation() {
  11. return gLCDOrientation;
  12. }
  13. void SkFontLCDConfig::SetSubpixelOrientation(LCDOrientation orientation) {
  14. gLCDOrientation = orientation;
  15. }
  16. SkFontLCDConfig::LCDOrder SkFontLCDConfig::GetSubpixelOrder() {
  17. return gLCDOrder;
  18. }
  19. void SkFontLCDConfig::SetSubpixelOrder(LCDOrder order) {
  20. gLCDOrder = order;
  21. }