blob: c1836acc70c5541e049bd08e05bc8b09f09344e4 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
2/*
3 * Copyright 2009 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
agl@chromium.org309485b2009-07-21 17:41:32 +00009
10#include "SkFontHost.h"
11
12static SkFontHost::LCDOrientation gLCDOrientation = SkFontHost::kHorizontal_LCDOrientation;
13static SkFontHost::LCDOrder gLCDOrder = SkFontHost::kRGB_LCDOrder;
14
15// static
16SkFontHost::LCDOrientation SkFontHost::GetSubpixelOrientation()
17{
18 return gLCDOrientation;
19}
20
21// static
22void SkFontHost::SetSubpixelOrientation(LCDOrientation orientation)
23{
24 gLCDOrientation = orientation;
25}
26
27// static
28SkFontHost::LCDOrder SkFontHost::GetSubpixelOrder()
29{
30 return gLCDOrder;
31}
32
33// static
34void SkFontHost::SetSubpixelOrder(LCDOrder order)
35{
36 gLCDOrder = order;
37}