… | |
… | |
51 | #ifndef PANGO_VERSION_CHECK |
51 | #ifndef PANGO_VERSION_CHECK |
52 | # define PANGO_VERSION_CHECK(a,b,c) 0 |
52 | # define PANGO_VERSION_CHECK(a,b,c) 0 |
53 | #endif |
53 | #endif |
54 | |
54 | |
55 | #if !PANGO_VERSION_CHECK (1, 15, 2) |
55 | #if !PANGO_VERSION_CHECK (1, 15, 2) |
56 | # define pango_layout_get_line_readonly pango_layout_get_line_readonly |
56 | # define pango_layout_get_line_readonly pango_layout_get_line |
57 | # define pango_layout_get_lines_readonly pango_layout_get_lines_readonly |
57 | # define pango_layout_get_lines_readonly pango_layout_get_lines |
58 | # define pango_layout_iter_get_line_readonly pango_layout_iter_get_line_readonly |
58 | # define pango_layout_iter_get_line_readonly pango_layout_iter_get_line |
59 | # define pango_layout_iter_get_run_readonly pango_layout_iter_get_run_readonly |
59 | # define pango_layout_iter_get_run_readonly pango_layout_iter_get_run |
60 | #endif |
60 | #endif |
61 | |
61 | |
62 | #ifndef _WIN32 |
62 | #ifndef _WIN32 |
63 | # include <sys/types.h> |
63 | # include <sys/types.h> |
64 | # include <sys/socket.h> |
64 | # include <sys/socket.h> |
… | |
… | |
673 | CODE: |
673 | CODE: |
674 | { |
674 | { |
675 | opengl_fontmap = pango_opengl_font_map_new (); |
675 | opengl_fontmap = pango_opengl_font_map_new (); |
676 | pango_opengl_font_map_set_default_substitute ((PangoOpenGLFontMap *)opengl_fontmap, substitute_func, 0, 0); |
676 | pango_opengl_font_map_set_default_substitute ((PangoOpenGLFontMap *)opengl_fontmap, substitute_func, 0, 0); |
677 | opengl_context = pango_opengl_font_map_create_context ((PangoOpenGLFontMap *)opengl_fontmap); |
677 | opengl_context = pango_opengl_font_map_create_context ((PangoOpenGLFontMap *)opengl_fontmap); |
|
|
678 | /*pango_context_set_font_description (opengl_context, default_font);*/ |
678 | #if PANGO_VERSION_CHECK (1, 15, 2) |
679 | #if PANGO_VERSION_CHECK (1, 15, 2) |
679 | pango_context_set_language (opengl_context, pango_language_from_string ("en")); |
680 | pango_context_set_language (opengl_context, pango_language_from_string ("en")); |
680 | /*pango_context_set_base_dir (opengl_context, PANGO_DIRECTION_WEAK_LTR);*/ |
681 | /*pango_context_set_base_dir (opengl_context, PANGO_DIRECTION_WEAK_LTR);*/ |
681 | #endif |
682 | #endif |
682 | } |
683 | } |
… | |
… | |
770 | SDL_GetKeyName (int sym) |
771 | SDL_GetKeyName (int sym) |
771 | |
772 | |
772 | int |
773 | int |
773 | SDL_GetAppState () |
774 | SDL_GetAppState () |
774 | |
775 | |
|
|
776 | int |
|
|
777 | SDL_GetModState () |
|
|
778 | |
775 | void |
779 | void |
776 | poll_events () |
780 | poll_events () |
777 | PPCODE: |
781 | PPCODE: |
778 | { |
782 | { |
779 | SDL_Event ev; |
783 | SDL_Event ev; |
… | |
… | |
912 | } |
916 | } |
913 | } |
917 | } |
914 | #endif |
918 | #endif |
915 | } |
919 | } |
916 | |
920 | |
917 | void |
921 | int |
918 | add_font (char *file) |
922 | add_font (char *file) |
919 | CODE: |
923 | CODE: |
920 | FcConfigAppFontAddFile (0, (const FcChar8 *)file); |
924 | RETVAL = FcConfigAppFontAddFile (0, (const FcChar8 *)file); |
|
|
925 | OUTPUT: |
|
|
926 | RETVAL |
921 | |
927 | |
922 | void |
928 | void |
923 | load_image_inline (SV *image_) |
929 | load_image_inline (SV *image_) |
924 | ALIAS: |
930 | ALIAS: |
925 | load_image_file = 1 |
931 | load_image_file = 1 |