Skia
2D Graphics Library
SkFontTypes.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Google Inc.
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 
8 #ifndef SkFontTypes_DEFINED
9 #define SkFontTypes_DEFINED
10 
11 enum class SkTextEncoding {
12  kUTF8,
13  kUTF16,
14  kUTF32,
15  kGlyphID,
16 };
17 
18 enum class SkFontHinting {
19  kNone,
20  kSlight,
21  kNormal,
22  kFull,
23 };
24 
25 #endif
SkFontHinting
Definition: SkFontTypes.h:18
@ kNormal
glyph outlines modified to improve constrast
@ kNone
glyph outlines unchanged
@ kSlight
minimal modification to improve constrast
@ kFull
modifies glyph outlines for maximum constrast
SkTextEncoding
Definition: SkFontTypes.h:11
@ kUTF8
uses bytes to represent UTF-8 or ASCII
@ kUTF16
uses two byte words to represent most of Unicode
@ kUTF32
uses four byte words to represent all of Unicode
@ kGlyphID
uses two byte words to represent glyph indices