… | |
… | |
25 | } *CFClient__Layout; |
25 | } *CFClient__Layout; |
26 | |
26 | |
27 | static void |
27 | static void |
28 | substitute_func (FcPattern *pattern, gpointer data) |
28 | substitute_func (FcPattern *pattern, gpointer data) |
29 | { |
29 | { |
30 | //FcPatternAddBool (pattern, FC_HINTING, 1); |
30 | FcPatternAddBool (pattern, FC_HINTING , 1); |
31 | //FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
31 | FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
32 | } |
32 | } |
33 | |
33 | |
34 | static void |
34 | static void |
35 | layout_update (CFClient__Layout self) |
35 | layout_update (CFClient__Layout self) |
36 | { |
36 | { |
… | |
… | |
95 | int count; |
95 | int count; |
96 | FcPattern *pattern = FcFreeTypeQuery ((const FcChar8 *)file, 0, 0, &count); |
96 | FcPattern *pattern = FcFreeTypeQuery ((const FcChar8 *)file, 0, 0, &count); |
97 | PangoFontDescription *font = pango_fc_font_description_from_pattern (pattern, 0); |
97 | PangoFontDescription *font = pango_fc_font_description_from_pattern (pattern, 0); |
98 | FcPatternDestroy (pattern); |
98 | FcPatternDestroy (pattern); |
99 | pango_context_set_font_description (context, font); |
99 | pango_context_set_font_description (context, font); |
|
|
100 | } |
|
|
101 | |
|
|
102 | void |
|
|
103 | wait_events (SV *rfd_, SV *wfd_) |
|
|
104 | PPCODE: |
|
|
105 | { |
100 | } |
106 | } |
101 | |
107 | |
102 | MODULE = CFClient PACKAGE = CFClient::Layout |
108 | MODULE = CFClient PACKAGE = CFClient::Layout |
103 | |
109 | |
104 | CFClient::Layout |
110 | CFClient::Layout |