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

Side by Side Diff: skia/ext/SkFontHost_fontconfig_impl.h

Issue 147005: Linux: fix fake italics for font's without italic variants. (Closed)
Patch Set: ... Created 11 years, 6 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
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_direct.cpp ('k') | skia/ext/SkFontHost_fontconfig_ipc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* libs/graphics/ports/SkFontHost_fontconfig_impl.h 1 /* libs/graphics/ports/SkFontHost_fontconfig_impl.h
2 ** 2 **
3 ** Copyright 2009, Google Inc. 3 ** Copyright 2009, Google Inc.
4 ** 4 **
5 ** Licensed under the Apache License, Version 2.0 (the "License"); 5 ** Licensed under the Apache License, Version 2.0 (the "License");
6 ** you may not use this file except in compliance with the License. 6 ** you may not use this file except in compliance with the License.
7 ** You may obtain a copy of the License at 7 ** You may obtain a copy of the License at
8 ** 8 **
9 ** http://www.apache.org/licenses/LICENSE-2.0 9 ** http://www.apache.org/licenses/LICENSE-2.0
10 ** 10 **
(...skipping 21 matching lines...) Expand all
32 32
33 /** Performs config match 33 /** Performs config match
34 * 34 *
35 * @param result_family (output) on success, the resulting family name. 35 * @param result_family (output) on success, the resulting family name.
36 * @param result_fileid (output) on success, the resulting file id. 36 * @param result_fileid (output) on success, the resulting file id.
37 * @param fileid_valid if true, then |fileid| is valid 37 * @param fileid_valid if true, then |fileid| is valid
38 * @param fileid the fileid (as returned by this function) which we are 38 * @param fileid the fileid (as returned by this function) which we are
39 * trying to match. 39 * trying to match.
40 * @param family (optional) the family of the font that we are trying to 40 * @param family (optional) the family of the font that we are trying to
41 * match. 41 * match.
42 * @param is_bold (optional, set to -1 to ignore) 42 * @param is_bold (optional, set to NULL to ignore, in/out)
43 * @param is_italic (optional, set to -1 to ignore) 43 * @param is_italic (optional, set to NULL to ignore, in/out)
44 * @return true iff successful. 44 * @return true iff successful.
45 */ 45 */
46 virtual bool Match( 46 virtual bool Match(
47 std::string* result_family, 47 std::string* result_family,
48 unsigned* result_fileid, 48 unsigned* result_fileid,
49 bool fileid_valid, 49 bool fileid_valid,
50 unsigned fileid, 50 unsigned fileid,
51 const std::string& family, 51 const std::string& family,
52 int is_bold, 52 bool* is_bold,
53 int is_italic) = 0; 53 bool* is_italic) = 0;
54 54
55 /** Open a font file given the fileid as returned by Match 55 /** Open a font file given the fileid as returned by Match
56 */ 56 */
57 virtual int Open(unsigned fileid) = 0; 57 virtual int Open(unsigned fileid) = 0;
58 }; 58 };
59 59
60 #endif // FontConfigInterface_DEFINED 60 #endif // FontConfigInterface_DEFINED
OLDNEW
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_direct.cpp ('k') | skia/ext/SkFontHost_fontconfig_ipc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698