OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 The Android Open Source Project | 3 * Copyright 2013 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkFontConfigInterface.h" | 9 #include "SkFontConfigInterface.h" |
10 #include "SkTypeface_android.h" | 10 #include "SkTypeface_android.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 const char* fontsdir) { | 570 const char* fontsdir) { |
571 gTestMainConfigFile = mainconf; | 571 gTestMainConfigFile = mainconf; |
572 gTestFallbackConfigFile = fallbackconf; | 572 gTestFallbackConfigFile = fallbackconf; |
573 gTestFontFilePrefix = fontsdir; | 573 gTestFontFilePrefix = fontsdir; |
574 SkASSERT(gTestMainConfigFile); | 574 SkASSERT(gTestMainConfigFile); |
575 SkASSERT(gTestFallbackConfigFile); | 575 SkASSERT(gTestFallbackConfigFile); |
576 SkASSERT(gTestFontFilePrefix); | 576 SkASSERT(gTestFontFilePrefix); |
577 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s", | 577 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s", |
578 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix)
); | 578 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix)
); |
579 } | 579 } |
| 580 |
| 581 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf
, |
| 582 const char** fontsdir) { |
| 583 *mainconf = gTestMainConfigFile; |
| 584 *fallbackconf = gTestFallbackConfigFile; |
| 585 *fontsdir = gTestFontFilePrefix; |
| 586 } |
OLD | NEW |