Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-#ifdef HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC
+#include "config.hh"
+#if HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC
/* Need to access to PangoFcFont.full_pattern. */
#define PANGO_ENABLE_BACKEND
static void pango_fc_afm_decoder_class_init (PangoFcAfmDecoderClass *clss);
static void pango_fc_afm_decoder_finalize (GObject *object);
-static FcCharSet *pango_fc_afm_get_charset (PangoFcFont *fcfont);
-static PangoGlyph pango_fc_afm_get_glyph (PangoFcFont *fcfont, guint32 wc);
-static void pango_fc_afm_decoder_set_file_name (PangoFcAfmDecoder *self, char const *file_name);
+static FcCharSet *pango_fc_afm_get_charset (PangoFcDecoder *decoder,
+ PangoFcFont *fcfont);
+static PangoGlyph pango_fc_afm_get_glyph (PangoFcDecoder *decoder,
+ PangoFcFont *fcfont, guint32 wc);
+static void pango_fc_afm_decoder_set_file_name (PangoFcAfmDecoder *self,
+ char const *file_name);
static PangoFcDecoderClass *parent_class;
}
static FcCharSet *
-pango_fc_afm_get_charset (PangoFcFont *fcfont)
+pango_fc_afm_get_charset (PangoFcDecoder *decoder, PangoFcFont *fcfont)
{
+ (void) decoder;
//dprintf ("get charset: %s\n", fcfont->font_pattern);
dprintf ("get charset: \n");
#if 0
}
static PangoGlyph
-pango_fc_afm_get_glyph (PangoFcFont *fcfont, guint32 wc)
+pango_fc_afm_get_glyph (PangoFcDecoder *decoder, PangoFcFont *fcfont,
+ guint32 wc)
{
+ (void) decoder;
#if 0
XftFont *xft_font;
xft_font = XftFontOpenPattern (GDK_DISPLAY (),
#include <pango/pangox.h>
#include <pango/pangoxft.h>
-#include "pangofc-afm-decoder.h"
+#include "pangofc-afm-decoder.hh"
#define CANVAS_WIDTH 600
#define CANVAS_HEIGHT 300