… | |
… | |
51 | #define MAP_EXTEND_X 32 |
51 | #define MAP_EXTEND_X 32 |
52 | #define MAP_EXTEND_Y 512 |
52 | #define MAP_EXTEND_Y 512 |
53 | |
53 | |
54 | #define MIN_FONT_HEIGHT 10 |
54 | #define MIN_FONT_HEIGHT 10 |
55 | |
55 | |
56 | #if 1 |
56 | #if 0 |
57 | # define PARACHUTE SDL_INIT_NOPARACHUTE |
57 | # define PARACHUTE SDL_INIT_NOPARACHUTE |
58 | #else |
58 | #else |
59 | # define PARACHUTE 0 |
59 | # define PARACHUTE 0 |
60 | #endif |
60 | #endif |
61 | |
61 | |
… | |
… | |
121 | { |
121 | { |
122 | FcPatternAddBool (pattern, FC_HINTING, 1); |
122 | FcPatternAddBool (pattern, FC_HINTING, 1); |
123 | #ifdef FC_HINT_STYLE |
123 | #ifdef FC_HINT_STYLE |
124 | FcPatternAddBool (pattern, FC_HINT_STYLE, FC_HINT_FULL); |
124 | FcPatternAddBool (pattern, FC_HINT_STYLE, FC_HINT_FULL); |
125 | #endif |
125 | #endif |
126 | #ifdef _WIN32 |
|
|
127 | FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
|
|
128 | #else |
|
|
129 | FcPatternAddBool (pattern, FC_AUTOHINT, 0); |
126 | FcPatternAddBool (pattern, FC_AUTOHINT, 0); |
130 | #endif |
|
|
131 | } |
127 | } |
132 | |
128 | |
133 | static void |
129 | static void |
134 | layout_update_font (CFClient__Layout self) |
130 | layout_update_font (CFClient__Layout self) |
135 | { |
131 | { |
… | |
… | |
770 | MODULE = CFClient PACKAGE = CFClient::Layout |
766 | MODULE = CFClient PACKAGE = CFClient::Layout |
771 | |
767 | |
772 | void |
768 | void |
773 | clear_font_cache () |
769 | clear_font_cache () |
774 | CODE: |
770 | CODE: |
775 | pango_fc_font_map_cache_clear ((PangoFcFontMap *)opengl_fontmap); |
|
|
776 | tc_clear (); |
771 | tc_clear (); |
777 | |
772 | |
778 | CFClient::Layout |
773 | CFClient::Layout |
779 | new (SV *class, int type = 0) |
774 | new (SV *class) |
780 | CODE: |
775 | CODE: |
781 | New (0, RETVAL, 1, struct cf_layout); |
776 | New (0, RETVAL, 1, struct cf_layout); |
782 | |
777 | |
783 | RETVAL->pl = pango_layout_new (opengl_context); |
778 | RETVAL->pl = pango_layout_new (opengl_context); |
784 | RETVAL->r = 1.; |
779 | RETVAL->r = 1.; |