OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 #include "Test.h" | 8 #include "SkEndian.h" |
9 #include "SkPaint.h" | |
10 #include "SkFontStream.h" | 9 #include "SkFontStream.h" |
11 #include "SkOSFile.h" | 10 #include "SkOSFile.h" |
| 11 #include "SkPaint.h" |
12 #include "SkStream.h" | 12 #include "SkStream.h" |
13 #include "SkTypeface.h" | 13 #include "SkTypeface.h" |
14 #include "SkEndian.h" | 14 #include "Test.h" |
15 | 15 |
16 //#define DUMP_TABLES | 16 //#define DUMP_TABLES |
17 //#define DUMP_TTC_TABLES | 17 //#define DUMP_TTC_TABLES |
18 | 18 |
19 #define kFontTableTag_head SkSetFourByteTag('h', 'e', 'a', 'd') | 19 #define kFontTableTag_head SkSetFourByteTag('h', 'e', 'a', 'd') |
20 #define kFontTableTag_hhea SkSetFourByteTag('h', 'h', 'e', 'a') | 20 #define kFontTableTag_hhea SkSetFourByteTag('h', 'h', 'e', 'a') |
21 #define kFontTableTag_maxp SkSetFourByteTag('m', 'a', 'x', 'p') | 21 #define kFontTableTag_maxp SkSetFourByteTag('m', 'a', 'x', 'p') |
22 | 22 |
23 static const struct TagSize { | 23 static const struct TagSize { |
24 SkFontTableTag fTag; | 24 SkFontTableTag fTag; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 DEF_TEST(FontHost, reporter) { | 302 DEF_TEST(FontHost, reporter) { |
303 test_tables(reporter); | 303 test_tables(reporter); |
304 test_fontstream(reporter); | 304 test_fontstream(reporter); |
305 test_advances(reporter); | 305 test_advances(reporter); |
306 } | 306 } |
307 | 307 |
308 // need tests for SkStrSearch | 308 // need tests for SkStrSearch |
OLD | NEW |