Advertisement
beckadam

wtf

Jun 5th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. genfont.c: In function ‘main’:
  2. genfont.c:9:5: error: unknown type name ‘FT_Library’
  3. FT_Library library;
  4. ^~~~~~~~~~
  5. genfont.c:10:5: error: unknown type name ‘FT_Error’
  6. FT_Error error;
  7. ^~~~~~~~
  8. genfont.c:11:5: error: unknown type name ‘FT_Face’; did you mean ‘FT_PFR_H’?
  9. FT_Face face;
  10. ^~~~~~~
  11. FT_PFR_H
  12. genfont.c:12:18: warning: implicit declaration of function ‘FT_Init_FreeType’ [-Wimplicit-function-declaration]
  13. if ((error = FT_Init_FreeType(&library)) ||
  14. ^~~~~~~~~~~~~~~~
  15. genfont.c:13:19: warning: implicit declaration of function ‘FT_New_Face’ [-Wimplicit-function-declaration]
  16. ((error = FT_New_Face(library, "/usr/share/fonts/fonts-master/apache/robotomono/RobotoMono-Medium.ttf", 0, &face)) &&
  17. ^~~~~~~~~~~
  18. genfont.c:15:18: warning: implicit declaration of function ‘FT_Set_Char_Size’ [-Wimplicit-function-declaration]
  19. (error = FT_Set_Char_Size(face, 0, 550, 0, 141)) ||
  20. ^~~~~~~~~~~~~~~~
  21. genfont.c:16:18: warning: implicit declaration of function ‘FT_Load_Char’ [-Wimplicit-function-declaration]
  22. (error = FT_Load_Char(face, U'w', FT_LOAD_DEFAULT))) return error;
  23. ^~~~~~~~~~~~
  24. genfont.c:16:43: error: ‘FT_LOAD_DEFAULT’ undeclared (first use in this function)
  25. (error = FT_Load_Char(face, U'w', FT_LOAD_DEFAULT))) return error;
  26. ^~~~~~~~~~~~~~~
  27. genfont.c:16:43: note: each undeclared identifier is reported only once for each function it appears in
  28. genfont.c:17:21: error: invalid type argument of ‘->’ (have ‘int’)
  29. int width = face->glyph->advance.x >> 6, height = face->size->metrics.height >> 6, height_bytes = (height + 1) >> 1;
  30. ^~
  31. genfont.c:17:59: error: invalid type argument of ‘->’ (have ‘int’)
  32. int width = face->glyph->advance.x >> 6, height = face->size->metrics.height >> 6, height_bytes = (height + 1) >> 1;
  33. ^~
  34. genfont.c:18:15: error: ‘PATH_MAX’ undeclared (first use in this function); did you mean ‘INT8_MAX’?
  35. char path[PATH_MAX];
  36. ^~~~~~~~
  37. INT8_MAX
  38. genfont.c:50:22: warning: implicit declaration of function ‘FT_Render_Glyph’ [-Wimplicit-function-declaration]
  39. (error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_NORMAL))) return error;
  40. ^~~~~~~~~~~~~~~
  41. genfont.c:50:42: error: invalid type argument of ‘->’ (have ‘int’)
  42. (error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_NORMAL))) return error;
  43. ^~
  44. genfont.c:50:51: error: ‘FT_RENDER_MODE_NORMAL’ undeclared (first use in this function)
  45. (error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_NORMAL))) return error;
  46. ^~~~~~~~~~~~~~~~~~~~~
  47. genfont.c:57:36: error: invalid type argument of ‘->’ (have ‘int’)
  48. for (int sy = 0, dy = (face->size->metrics.ascender >> 6) - face->glyph->bitmap_top; sy != face->glyph->bitmap.rows; ++sy, ++dy) {
  49. ^~
  50. genfont.c:57:73: error: invalid type argument of ‘->’ (have ‘int’)
  51. for (int sy = 0, dy = (face->size->metrics.ascender >> 6) - face->glyph->bitmap_top; sy != face->glyph->bitmap.rows; ++sy, ++dy) {
  52. ^~
  53. genfont.c:57:104: error: invalid type argument of ‘->’ (have ‘int’)
  54. for (int sy = 0, dy = (face->size->metrics.ascender >> 6) - face->glyph->bitmap_top; sy != face->glyph->bitmap.rows; ++sy, ++dy) {
  55. ^~
  56. genfont.c:58:39: error: invalid type argument of ‘->’ (have ‘int’)
  57. for (int sx = 0, dx = face->glyph->bitmap_left; sx != face->glyph->bitmap.width; ++sx, ++dx) {
  58. ^~
  59. genfont.c:58:71: error: invalid type argument of ‘->’ (have ‘int’)
  60. for (int sx = 0, dx = face->glyph->bitmap_left; sx != face->glyph->bitmap.width; ++sx, ++dx) {
  61. ^~
  62. genfont.c:60:33: error: invalid type argument of ‘->’ (have ‘int’)
  63. uint8_t g = face->glyph->bitmap.buffer[sy * face->glyph->bitmap.pitch + sx];
  64. ^~
  65. genfont.c:60:65: error: invalid type argument of ‘->’ (have ‘int’)
  66. uint8_t g = face->glyph->bitmap.buffer[sy * face->glyph->bitmap.pitch + sx];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement