5 Face *res = new Face(appFaceHandle, *ops);
6 if (res && load_face(*res, faceOptions))
7 - return static_cast<gr_face *>(res);
8 + return reinterpret_cast<gr_face *>(res);
14 void gr_face_destroy(gr_face *face)
17 + delete static_cast<Face *>(face);
24 if (face == 0) return 0;
26 Font * const res = new Font(ppm, *face, appFontHandle, font_ops);
27 - return static_cast<gr_font*>(res);
28 + return reinterpret_cast<gr_font*>(res);
31 gr_font* gr_make_font_with_advance_fn(float ppm/*pixels per em*/, const void* appFontHandle/*non-NULL*/, gr_advance_fn getAdvance, const gr_face * face/*needed for scaling*/)
34 void gr_font_destroy(gr_font *font)
37 + delete static_cast<Font *>(font);