Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: include/ports/SkTypeface_android.h

Issue 14761003: API modifications needed to upstream Android font changes. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: addressing comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkPaintOptionsAndroid.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8
9 #ifndef SkTypeface_android_DEFINED 9 #ifndef SkTypeface_android_DEFINED
10 #define SkTypeface_android_DEFINED 10 #define SkTypeface_android_DEFINED
11 11
12 #ifdef SK_BUILD_FOR_ANDROID
13
12 #include "SkTypeface.h" 14 #include "SkTypeface.h"
13 15
14 /** 16 /**
15 * Get the family name of the font in the fallback font list containing 17 * Get the family name of the font in the fallback font list containing
16 * the specified chararacter. if no font is found, returns false. 18 * the specified chararacter. if no font is found, returns false.
17 */ 19 */
18 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); 20 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name);
19 21
20 /** 22 /**
21 * For test only. 23 * For test only.
(...skipping 10 matching lines...) Expand all
32 * on. This process must be finite, and when the fonthost sees a 34 * on. This process must be finite, and when the fonthost sees a
33 * font with no logical successor, it must return NULL. 35 * font with no logical successor, it must return NULL.
34 * 36 *
35 * The original fontID is also provided. This is the initial font that was 37 * The original fontID is also provided. This is the initial font that was
36 * stored in the typeface of the caller. It is provided as an aid to choose 38 * stored in the typeface of the caller. It is provided as an aid to choose
37 * the best next logical font. e.g. If the original font was bold or serif, 39 * the best next logical font. e.g. If the original font was bold or serif,
38 * but the 2nd in the logical chain was plain, then a subsequent call to 40 * but the 2nd in the logical chain was plain, then a subsequent call to
39 * get the 3rd can still inspect the original, and try to match its 41 * get the 3rd can still inspect the original, and try to match its
40 * stylistic attributes. 42 * stylistic attributes.
41 */ 43 */
42 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI D); 44 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI D,
45 const SkPaintOptionsAndroid& options);
43 46
44 #endif 47 #endif // #ifdef SK_BUILD_FOR_ANDROID
48 #endif // #ifndef SkTypeface_android_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkPaintOptionsAndroid.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698