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::kNormal
@ kNormal
glyph outlines modified to improve constrast
SkFontHinting::kSlight
@ kSlight
minimal modification to improve constrast
SkFontHinting::kNone
@ kNone
glyph outlines unchanged
SkTextEncoding::kUTF8
@ kUTF8
uses bytes to represent UTF-8 or ASCII
SkTextEncoding::kUTF32
@ kUTF32
uses four byte words to represent all of Unicode
SkTextEncoding::kGlyphID
@ kGlyphID
uses two byte words to represent glyph indices
SkTextEncoding
SkTextEncoding
Definition: SkFontTypes.h:11
SkFontHinting
SkFontHinting
Definition: SkFontTypes.h:18
SkFontHinting::kFull
@ kFull
modifies glyph outlines for maximum constrast
SkTextEncoding::kUTF16
@ kUTF16
uses two byte words to represent most of Unicode