1 /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
2 /* cairo - a vector graphics library with display and print output
4 * Copyright © 2008 Adrian Johnson
6 * This library is free software; you can redistribute it and/or
7 * modify it either under the terms of the GNU Lesser General Public
8 * License version 2.1 as published by the Free Software Foundation
9 * (the "LGPL") or, at your option, under the terms of the Mozilla
10 * Public License Version 1.1 (the "MPL"). If you do not alter this
11 * notice, a recipient may use your version of this file under either
12 * the MPL or the LGPL.
14 * You should have received a copy of the LGPL along with this library
15 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * You should have received a copy of the MPL along with this library
18 * in the file COPYING-MPL-1.1
20 * The contents of this file are subject to the Mozilla Public License
21 * Version 1.1 (the "License"); you may not use this file except in
22 * compliance with the License. You may obtain a copy of the License at
23 * http://www.mozilla.org/MPL/
25 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
26 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
27 * the specific language governing rights and limitations.
29 * The Original Code is the cairo graphics library.
31 * The Initial Developer of the Original Code is Adrian Johnson.
34 * Adrian Johnson <ajohnson@redneon.com>
37 #ifndef CAIRO_TYPE3_GLYPH_SURFACE_PRIVATE_H
38 #define CAIRO_TYPE3_GLYPH_SURFACE_PRIVATE_H
42 #if CAIRO_HAS_FONT_SUBSET
44 #include "cairo-surface-private.h"
45 #include "cairo-pdf-operators-private.h"
47 typedef cairo_status_t (*cairo_type3_glyph_surface_emit_image_t
) (cairo_image_surface_t
*image
,
48 cairo_output_stream_t
*stream
);
50 typedef struct cairo_type3_glyph_surface
{
53 cairo_scaled_font_t
*scaled_font
;
54 cairo_output_stream_t
*stream
;
55 cairo_pdf_operators_t pdf_operators
;
56 cairo_matrix_t cairo_to_pdf
;
57 cairo_type3_glyph_surface_emit_image_t emit_image
;
58 } cairo_type3_glyph_surface_t
;
60 cairo_private cairo_surface_t
*
61 _cairo_type3_glyph_surface_create (cairo_scaled_font_t
*scaled_font
,
62 cairo_output_stream_t
*stream
,
63 cairo_type3_glyph_surface_emit_image_t emit_image
,
64 cairo_scaled_font_subsets_t
*font_subsets
);
67 _cairo_type3_glyph_surface_set_font_subsets_callback (void *abstract_surface
,
68 cairo_pdf_operators_use_font_subset_t use_font_subset
,
71 cairo_private cairo_status_t
72 _cairo_type3_glyph_surface_analyze_glyph (void *abstract_surface
,
73 unsigned long glyph_index
);
75 cairo_private cairo_status_t
76 _cairo_type3_glyph_surface_emit_glyph (void *abstract_surface
,
77 cairo_output_stream_t
*stream
,
78 unsigned long glyph_index
,
82 #endif /* CAIRO_HAS_FONT_SUBSET */
84 #endif /* CAIRO_TYPE3_GLYPH_SURFACE_PRIVATE_H */