| 135 | } |
| 136 | |
| 137 | FontHandle *adoptFreetypeFont(FT_Face ftFace) { |
| 138 | FontHandle *handle = new FontHandle; |
| 139 | handle->face = ftFace; |
| 140 | handle->ownership = false; |
| 141 | return handle; |
| 142 | } |
| 143 | |
| 144 | FT_Error readFreetypeOutline(Shape &output, FT_Outline *outline, double scale) { |
| 145 | output.contours.clear(); |