| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |