Comment 17 for bug 1416674

Revision history for this message
Alvin Penner (apenner) wrote : Re: 0.91 doesn't show fonts loaded by font manager

these errors were caused by name changes in the file \mingw\include\wingdi.h

- fix these name changes and a few other errors using the attached patch file:
- the compile errors have now been reduced to the following:

compile src/libnrtype/FontFactory.cpp
Make error line 313: problem compiling: In file included from src/style.h:21:0,
                 from src/libnrtype/FontFactory.h:24,
                 from src/libnrtype/FontFactory.cpp:22:
src/style-internal.h:522:5: warning: unused parameter 'inherits' [-Wunused-parameter]
src/libnrtype/FontFactory.cpp: In member function 'font_instance* font_factory::Face(PangoFontDescription*, bool)':
src/libnrtype/FontFactory.cpp:682:61: error: cannot convert 'HFONT {aka HFONT__*}' to 'FT_Face {aka FT_FaceRec_*}' for argument '1' to 'PangoOTInfo* pango_ot_info_get(FT_Face)'
src/libnrtype/FontFactory.cpp:693:96: warning: passing NULL to non-pointer argument 4 of 'PangoOTTag* pango_ot_info_list_languages(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag)' [-Wconversion-null]

...................................................
unfortunately, I do not know how to fix these errors. They appear to be related to changes made in rev 14487 and rev 14552.

Needless to say, I am way out of my depth here, I cannot even begin to know how to fix these errors. Any help from any quarter would be greatly appreciated. I will try to summarize the situation below.