• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
GetSubpixelOrientation()16 SkFontHost::LCDOrientation SkFontHost::GetSubpixelOrientation()
17 {
18     return gLCDOrientation;
19 }
20 
21 // static
SetSubpixelOrientation(LCDOrientation orientation)22 void SkFontHost::SetSubpixelOrientation(LCDOrientation orientation)
23 {
24     gLCDOrientation = orientation;
25 }
26 
27 // static
GetSubpixelOrder()28 SkFontHost::LCDOrder SkFontHost::GetSubpixelOrder()
29 {
30     return gLCDOrder;
31 }
32 
33 // static
SetSubpixelOrder(LCDOrder order)34 void SkFontHost::SetSubpixelOrder(LCDOrder order)
35 {
36     gLCDOrder = order;
37 }
38