1 :
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 :
9 :
10 : #include "SkFontHost.h"
11 :
12 : static SkFontHost::LCDOrientation gLCDOrientation = SkFontHost::kHorizontal_LCDOrientation;
13 : static SkFontHost::LCDOrder gLCDOrder = SkFontHost::kRGB_LCDOrder;
14 :
15 : // static
16 0 : SkFontHost::LCDOrientation SkFontHost::GetSubpixelOrientation()
17 : {
18 0 : return gLCDOrientation;
19 : }
20 :
21 : // static
22 0 : void SkFontHost::SetSubpixelOrientation(LCDOrientation orientation)
23 : {
24 0 : gLCDOrientation = orientation;
25 0 : }
26 :
27 : // static
28 0 : SkFontHost::LCDOrder SkFontHost::GetSubpixelOrder()
29 : {
30 0 : return gLCDOrder;
31 : }
32 :
33 : // static
34 0 : void SkFontHost::SetSubpixelOrder(LCDOrder order)
35 : {
36 0 : gLCDOrder = order;
37 0 : }
|