| 260 | } |
| 261 | |
| 262 | static void ClearTextMetrics(TextMetrics* metrics) { |
| 263 | metrics->advance[0] = 0; |
| 264 | metrics->advance[1] = 0; |
| 265 | metrics->bounds[0] = INT_MAX; // min horz |
| 266 | metrics->bounds[1] = INT_MIN; // max horz |
| 267 | metrics->bounds[2] = INT_MAX; // min vert |
| 268 | metrics->bounds[3] = INT_MIN; // max vert |
| 269 | } |
| 270 | |
| 271 | static void ApplyGlyphSlotToTextMetrics(TextMetrics* metrics, FT_GlyphSlot slot) { |
| 272 | int glyph_bounds[4]; |
no outgoing calls
no test coverage detected