… | |
… | |
37 | |
37 | |
38 | static void |
38 | static void |
39 | substitute_func (FcPattern *pattern, gpointer data) |
39 | substitute_func (FcPattern *pattern, gpointer data) |
40 | { |
40 | { |
41 | FcPatternAddBool (pattern, FC_HINTING , 1); |
41 | FcPatternAddBool (pattern, FC_HINTING , 1); |
42 | FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
42 | FcPatternAddBool (pattern, FC_AUTOHINT, 0); |
43 | } |
43 | } |
44 | |
44 | |
45 | static void |
45 | static void |
46 | layout_update (CFClient__Layout self) |
46 | layout_update (CFClient__Layout self) |
47 | { |
47 | { |
… | |
… | |
285 | CODE: |
285 | CODE: |
286 | g_object_unref (self->pl); |
286 | g_object_unref (self->pl); |
287 | Safefree (self); |
287 | Safefree (self); |
288 | |
288 | |
289 | void |
289 | void |
|
|
290 | set_text (CFClient::Layout self, SV *text_) |
|
|
291 | CODE: |
|
|
292 | { |
|
|
293 | STRLEN textlen; |
|
|
294 | char *text = SvPVutf8 (text_, textlen); |
|
|
295 | |
|
|
296 | pango_layout_set_text (self->pl, text, textlen); |
|
|
297 | } |
|
|
298 | |
|
|
299 | void |
290 | set_markup (CFClient::Layout self, SV *text_) |
300 | set_markup (CFClient::Layout self, SV *text_) |
291 | CODE: |
301 | CODE: |
292 | { |
302 | { |
293 | STRLEN textlen; |
303 | STRLEN textlen; |
294 | char *text = SvPVutf8 (text_, textlen); |
304 | char *text = SvPVutf8 (text_, textlen); |
… | |
… | |
568 | draw (CFClient::Map self, int x0, int y0, int sw, int sh) |
578 | draw (CFClient::Map self, int x0, int y0, int sw, int sh) |
569 | PPCODE: |
579 | PPCODE: |
570 | { |
580 | { |
571 | int sw4 = (sw + 3) & ~3; |
581 | int sw4 = (sw + 3) & ~3; |
572 | SV *darkness_sv = sv_2mortal (newSV (sw4 * sh)); |
582 | SV *darkness_sv = sv_2mortal (newSV (sw4 * sh)); |
573 | uint8_t *darkness = SvPVX (darkness_sv); |
583 | uint8_t *darkness = (uint8_t *)SvPVX (darkness_sv); |
574 | |
584 | |
575 | SvPOK_only (darkness_sv); |
585 | SvPOK_only (darkness_sv); |
576 | SvCUR_set (darkness_sv, sw4 * sh); |
586 | SvCUR_set (darkness_sv, sw4 * sh); |
577 | |
587 | |
578 | int vx = self->vx = self->w >= sw |
588 | int vx = self->vx = self->w >= sw |