~ubuntu-branches/ubuntu/hardy/libgdiplus/hardy

« back to all changes in this revision

Viewing changes to cairo/src/cairo-ps-surface.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-12-18 13:08:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218130810-hlmitxfddf6h511j
Tags: 1.2.6-1ubuntu1
* Sync with Debian:
  - debian/control:
    + Add lpia and sparc to the architectures. We support them.
    + Change Maintainer to Ubuntu Mono Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
547
547
                                         CAIRO_SCALED_GLYPH_INFO_METRICS|
548
548
                                         CAIRO_SCALED_GLYPH_INFO_SURFACE,
549
549
                                         &scaled_glyph);
 
550
    if (status)
 
551
        return status;
550
552
 
551
553
    image = scaled_glyph->surface;
552
554
    if (image->format != CAIRO_FORMAT_A1) {
602
604
    return CAIRO_STATUS_SUCCESS;
603
605
}
604
606
 
605
 
static void
 
607
static cairo_status_t
606
608
_cairo_ps_surface_emit_glyph (cairo_ps_surface_t        *surface,
607
609
                              cairo_scaled_font_t       *scaled_font,
608
610
                              unsigned long              scaled_font_glyph_index,
626
628
 
627
629
    if (status)
628
630
        _cairo_surface_set_error (&surface->base, status);
 
631
 
 
632
    return status;
629
633
}
630
634
 
631
635
static cairo_status_t
662
666
                                 -matrix.yy);
663
667
 
664
668
    for (i = 0; i < font_subset->num_glyphs; i++) {
665
 
        _cairo_ps_surface_emit_glyph (surface,
666
 
                                      font_subset->scaled_font,
667
 
                                      font_subset->glyphs[i], i);
 
669
        status = _cairo_ps_surface_emit_glyph (surface,
 
670
                                               font_subset->scaled_font,
 
671
                                               font_subset->glyphs[i], i);
 
672
        if (status)
 
673
            return status;
668
674
    }
669
675
 
670
676
    _cairo_output_stream_printf (surface->final_stream,