| 17 | } |
| 18 | |
| 19 | float pixelsToPoints(int32_t pixels, float pointScale) { |
| 20 | return static_cast<float>(pixels) / pointScale; |
| 21 | } |
| 22 | |
| 23 | float roundToPixelGrid(float point, float pointScale) { |
| 24 | return roundf(point * pointScale) / pointScale; |
no outgoing calls