OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The Android Open Source Project | 2 * Copyright 2011 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkFontMgr_android_parser_DEFINED | 8 #ifndef SkFontMgr_android_parser_DEFINED |
9 #define SkFontMgr_android_parser_DEFINED | 9 #define SkFontMgr_android_parser_DEFINED |
10 | 10 |
| 11 #include "SkFixed.h" |
11 #include "SkString.h" | 12 #include "SkString.h" |
| 13 #include "SkTArray.h" |
12 #include "SkTDArray.h" | 14 #include "SkTDArray.h" |
| 15 #include "SkTypes.h" |
13 | 16 |
14 #include <climits> | 17 #include <climits> |
15 #include <limits> | 18 #include <limits> |
16 | 19 |
17 /** \class SkLanguage | 20 /** \class SkLanguage |
18 | 21 |
19 The SkLanguage class represents a human written language, and is used by | 22 The SkLanguage class represents a human written language, and is used by |
20 text draw operations to determine which glyph to draw when drawing | 23 text draw operations to determine which glyph to draw when drawing |
21 characters with variants (ie Han-derived characters). | 24 characters with variants (ie Han-derived characters). |
22 */ | 25 */ |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 209 } |
207 if (negate) { | 210 if (negate) { |
208 n = -n; | 211 n = -n; |
209 frac = -frac; | 212 frac = -frac; |
210 } | 213 } |
211 *value = (n << N) + frac; | 214 *value = (n << N) + frac; |
212 return true; | 215 return true; |
213 } | 216 } |
214 | 217 |
215 #endif /* SkFontMgr_android_parser_DEFINED */ | 218 #endif /* SkFontMgr_android_parser_DEFINED */ |
OLD | NEW |