| 252 | } |
| 253 | |
| 254 | static void FTMatrixFromAngle(FT_Matrix* matrix, float degrees) { |
| 255 | float angle = degrees / 180.0f * 3.1415927f; |
| 256 | matrix->xx = (FT_Fixed)(cos(angle) * 0x10000L); |
| 257 | matrix->xy = (FT_Fixed)(-sin(angle) * 0x10000L); |
| 258 | matrix->yx = (FT_Fixed)(sin(angle) * 0x10000L); |
| 259 | matrix->yy = (FT_Fixed)(cos(angle) * 0x10000L); |
| 260 | } |
| 261 | |
| 262 | static void ClearTextMetrics(TextMetrics* metrics) { |
| 263 | metrics->advance[0] = 0; |
no test coverage detected