custom_types.h 433 B

12345678910111213141516171819
  1. #ifndef CUSTOM_TYPES_H
  2. #define CUSTOM_TYPES_H
  3. #include "stdint.h"
  4. typedef struct {
  5. int *x_coords, *y_coords, *contour_end_indicies, number_of_points, number_of_contours;
  6. uint8_t *flags;
  7. } SP_glyph;
  8. typedef struct {
  9. int current_byte, number_of_glyphs, *glyph_offsets;
  10. uint16_t *unicode_to_glyph_indicies, units_per_em;
  11. uint8_t *buffer;
  12. SP_glyph *glyphs;
  13. int16_t index_to_loca_format;
  14. } SP_font;
  15. #endif