diff options
Diffstat (limited to 'src/core/SkFontLCDConfig.cpp')
-rw-r--r-- | src/core/SkFontLCDConfig.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/SkFontLCDConfig.cpp b/src/core/SkFontLCDConfig.cpp new file mode 100644 index 0000000000..3d1f35b58c --- /dev/null +++ b/src/core/SkFontLCDConfig.cpp @@ -0,0 +1,27 @@ +/* + * Copyright 2009 The Android Open Source Project + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkFontLCDConfig.h" + +static SkFontLCDConfig::LCDOrientation gLCDOrientation = SkFontLCDConfig::kHorizontal_LCDOrientation; +static SkFontLCDConfig::LCDOrder gLCDOrder = SkFontLCDConfig::kRGB_LCDOrder; + +SkFontLCDConfig::LCDOrientation SkFontLCDConfig::GetSubpixelOrientation() { + return gLCDOrientation; +} + +void SkFontLCDConfig::SetSubpixelOrientation(LCDOrientation orientation) { + gLCDOrientation = orientation; +} + +SkFontLCDConfig::LCDOrder SkFontLCDConfig::GetSubpixelOrder() { + return gLCDOrder; +} + +void SkFontLCDConfig::SetSubpixelOrder(LCDOrder order) { + gLCDOrder = order; +} |