Use Freetype2-specific types which match the types used internally and returned by Freetype2 functions anyway.
@@ -226,7 +226,7 @@ static void create_bitmap_sizes(struct font_path_info *info, FT_Face face)
da_reserve(sizes, face->num_fixed_sizes);
for (int i = 0; i < face->num_fixed_sizes; i++) {
- int val = face->available_sizes[i].size >> 6;
+ FT_Pos val = face->available_sizes[i].size >> 6;
da_push_back(sizes, &val);
}
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
struct glyph_info {
float u, v, u2, v2;
int32_t w, h, xoff, yoff;
- int32_t xadv;
+ FT_Pos xadv;
};
struct ft2_source {