OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 { | 146 { |
147 const uint32_t cbdtTag = OTS_TAG('C', 'B', 'D', 'T'); | 147 const uint32_t cbdtTag = OTS_TAG('C', 'B', 'D', 'T'); |
148 const uint32_t cblcTag = OTS_TAG('C', 'B', 'L', 'C'); | 148 const uint32_t cblcTag = OTS_TAG('C', 'B', 'L', 'C'); |
149 const uint32_t colrTag = OTS_TAG('C', 'O', 'L', 'R'); | 149 const uint32_t colrTag = OTS_TAG('C', 'O', 'L', 'R'); |
150 const uint32_t cpalTag = OTS_TAG('C', 'P', 'A', 'L'); | 150 const uint32_t cpalTag = OTS_TAG('C', 'P', 'A', 'L'); |
151 #if HB_VERSION_ATLEAST(1, 0, 0) | 151 #if HB_VERSION_ATLEAST(1, 0, 0) |
152 const uint32_t gdefTag = OTS_TAG('G', 'D', 'E', 'F'); | 152 const uint32_t gdefTag = OTS_TAG('G', 'D', 'E', 'F'); |
153 const uint32_t gposTag = OTS_TAG('G', 'P', 'O', 'S'); | 153 const uint32_t gposTag = OTS_TAG('G', 'P', 'O', 'S'); |
154 const uint32_t gsubTag = OTS_TAG('G', 'S', 'U', 'B'); | 154 const uint32_t gsubTag = OTS_TAG('G', 'S', 'U', 'B'); |
155 #endif | 155 #endif |
| 156 const uint32_t sbixTag = OTS_TAG('s', 'b', 'i', 'x'); |
156 | 157 |
157 switch (tag) { | 158 switch (tag) { |
158 // Google Color Emoji Tables | 159 // Google Color Emoji Tables |
159 case cbdtTag: | 160 case cbdtTag: |
160 case cblcTag: | 161 case cblcTag: |
161 // Windows Color Emoji Tables | 162 // Windows Color Emoji Tables |
162 case colrTag: | 163 case colrTag: |
163 case cpalTag: | 164 case cpalTag: |
164 #if HB_VERSION_ATLEAST(1, 0, 0) | 165 #if HB_VERSION_ATLEAST(1, 0, 0) |
165 // Let HarfBuzz handle how to deal with broken tables. | 166 // Let HarfBuzz handle how to deal with broken tables. |
166 case gdefTag: | 167 case gdefTag: |
167 case gposTag: | 168 case gposTag: |
168 case gsubTag: | 169 case gsubTag: |
169 #endif | 170 #endif |
| 171 case sbixTag: |
170 return ots::TABLE_ACTION_PASSTHRU; | 172 return ots::TABLE_ACTION_PASSTHRU; |
171 default: | 173 default: |
172 return ots::TABLE_ACTION_DEFAULT; | 174 return ots::TABLE_ACTION_DEFAULT; |
173 } | 175 } |
174 } | 176 } |
175 | 177 |
176 } // namespace blink | 178 } // namespace blink |
OLD | NEW |