Re: Build libfreetype with custom, embedded environment fails
Lawrence D'Oliveiro <[email protected]> Wed, 22 Apr 2026 09:10:41 +1200
| Newsgroups | gmane.comp.fonts.freetype.user |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
On Tue, 21 Apr 2026 12:27:48 +0200, Erich Ente wrote: > ... I had to > replace the complex macros in fterrdef.h by plain and > straight-forward defines such as > > #define FT_Ok 0x00 > #define FT_Err_Ok 0x00 > > #define FT_Error_Cannot_Open_Resource 0x01 > #define FT_Err_Cannot_Open_Resource 0x01 > #define FT_Error_Unknown_File_Format 0x02 > #define FT_Err_Unknown_File_Format 0x02 I wrote a utility to extract these same numbers for my Python wrapper <https://gitlab.com/ldo/python_freetype> -- see the util/gen_errors.c file.