/* GNU LilyPond * pangofc-afm-decoder.h -- * * Copyright (C) 2004 Jan Nieuwenhuizen * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __PANGOFC_AFM_DECODER_H__ #define __PANGOFC_AFM_DECODER_H__ #include G_BEGIN_DECLS #define PANGO_TYPE_FC_AFM_DECODER (pango_fc_afm_decoder_get_type ()) #define PANGO_FC_AFM_DECODER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FC_AFM_DECODER, PangoFcAfmDecoder)) #define PANGO_IS_FC_AFM_DECODER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FC_AFM_DECODER)) #define PANGO_FC_AFM_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FC_AFM_DECODER, PangoFcAfmDecoderClass)) #define PANGO_IS_FC_AFM_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FC_AFM_DECODER)) #define PANGO_FC_AFM_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FC_AFM_DECODER, PangoFcAfmDecoderClass)) typedef struct _PangoFcAfmDecoder PangoFcAfmDecoder; typedef struct _PangoFcAfmDecoderClass PangoFcAfmDecoderClass; typedef struct _PangoFcAfmDecoderPrivate PangoFcAfmDecoderPrivate; /** * PangoFcAfmDecoder: * * #PangoFcAfmDecoder implements an PangoFcDecoder for fonts * with an afm mapping. **/ struct _PangoFcAfmDecoder { PangoFcDecoder parent_instance; PangoFcAfmDecoderPrivate *priv; }; PangoFcDecoder * pango_fc_afm_find_decoder (FcPattern *pattern, gpointer user_data); /** * PangoFcAfmDecoderClass: * @read_afm: Read afm mapping for #fcfont. * * Class structure for #PangoFcAfmDecoder. **/ struct _PangoFcAfmDecoderClass { /*< private >*/ PangoFcDecoderClass parent_class; /*< public >*/ void (*read_afm) (PangoFcAfmDecoder *self, PangoFcFont *fcfont); /*< private >*/ /* Padding for future expansion */ void (*_pango_reserved1) (void); void (*_pango_reserved2) (void); void (*_pango_reserved3) (void); void (*_pango_reserved4) (void); }; G_END_DECLS #endif /* __PANGOFC_AFM_DECODER_H__ */