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 14 matching lines...) Expand all Loading... |
25 #define FontConfigInterface_DEFINED | 25 #define FontConfigInterface_DEFINED |
26 | 26 |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 class FontConfigInterface { | 29 class FontConfigInterface { |
30 public: | 30 public: |
31 virtual ~FontConfigInterface() { } | 31 virtual ~FontConfigInterface() { } |
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 (optional, set to NULL to ignore, output) |
36 * @param result_filefaceid (output) on success, the resulting fileface id. | 36 * on success, set to the resulting family name. |
| 37 * @param result_filefaceid (optional, set to NULL to ignore, output) |
| 38 * on success, set to the resulting fileface id. |
37 * @param filefaceid_valid if true, then |filefaceid| is valid | 39 * @param filefaceid_valid if true, then |filefaceid| is valid |
38 * @param filefaceid the filefaceid (as returned by this function) | 40 * @param filefaceid the filefaceid (as returned by this function) |
39 * which we are trying to match. | 41 * which we are trying to match. |
40 * @param family (optional) the family of the font that we are trying to | 42 * @param family (optional) the family of the font that we are trying to |
41 * match. If the length of the |family| is greater then | 43 * match. If the length of the |family| is greater then |
42 * kMaxFontFamilyLength, this function should immediately return false. | 44 * kMaxFontFamilyLength, this function should immediately return false. |
43 * @param characters (optional) UTF-16 characters the font must cover. | 45 * @param characters (optional) UTF-16 characters the font must cover. |
44 * @param characters_bytes (optional) number of bytes in |characters| | 46 * @param characters_bytes (optional) number of bytes in |characters| |
45 * @param is_bold (optional, set to NULL to ignore, in/out) | 47 * @param is_bold (optional, set to NULL to ignore, in/out) |
46 * @param is_italic (optional, set to NULL to ignore, in/out) | 48 * @param is_italic (optional, set to NULL to ignore, in/out) |
(...skipping 15 matching lines...) Expand all Loading... |
62 bool* is_italic) = 0; | 64 bool* is_italic) = 0; |
63 | 65 |
64 /** Open a font file given the filefaceid as returned by Match. | 66 /** Open a font file given the filefaceid as returned by Match. |
65 */ | 67 */ |
66 virtual int Open(unsigned filefaceid) = 0; | 68 virtual int Open(unsigned filefaceid) = 0; |
67 | 69 |
68 static const unsigned kMaxFontFamilyLength = 2048; | 70 static const unsigned kMaxFontFamilyLength = 2048; |
69 }; | 71 }; |
70 | 72 |
71 #endif // FontConfigInterface_DEFINED | 73 #endif // FontConfigInterface_DEFINED |
OLD | NEW |