Logo Search packages:      
Sourcecode: gretl version File versions

gtkpsfontpango.h

/* gtkpsfont - PostScript Fonts handling 
 * Copyright 1999-2001  Adrian E. Feiguin <feiguin@ifir.edu.ar>
 *
 * Some code borrowed from
 * DiaCanvas -- a technical canvas widget
 * Copyright (C) 1999 Arjan Molenaar
 * Dia -- an diagram creation/manipulation program
 * Copyright (C) 1998 Alexander Larsson
 *
 * and Xfig
 *
 * 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 __GTK_PS_FONT_H__
#define __GTK_PS_FONT_H__

typedef struct _GtkPSFont GtkPSFont;

struct _GtkPSFont {
  gchar *fontname;
  gchar *psname;
  gchar *family;
  gchar *pango_description;
  gchar *i18n_latinfamily;
  gboolean italic;
  gboolean bold;
  gboolean vertical;
};

gint        gtk_psfont_init               ();
void        gtk_psfont_unref        ();
GtkPSFont*  gtk_psfont_get_by_name        (const gchar *name);
GtkPSFont*  gtk_psfont_get_by_family        (const gchar *family, 
                                                 gboolean italic, 
                                                 gboolean bold);
GdkFont*    gtk_psfont_get_gdkfont        (GtkPSFont *font, gint height);
PangoFontDescription*   gtk_psfont_get_font_description (GtkPSFont *font, 
                                             gint height);
const gchar *     gtk_psfont_get_psfontname     (GtkPSFont *psfont);
void        gtk_psfont_add_font           (const char *fontname,
                                     const gchar *psname,
                                     const gchar *family,
                                     const gchar *pango_string,
                                     gboolean italic,
                                                 gboolean bold);
void        gtk_psfont_add_i18n_font      (const char *fontname,
                                     const gchar *psname,
                                     const gchar *family,
                                     const gchar *i18n_latinfamily,
                                     const gchar *pango_string,
                                     gboolean italic,
                                                 gboolean bold,
                                     gboolean vertical);
void        gtk_psfont_get_families       (GList **family, gint *numf);
void        gtk_psfont_get_char_size      (GtkPSFont *psfont,
                                           GdkFont *font,
                                           GdkFont *latin_font,
                                           GdkWChar wc,
                                           gint *width,
                                           gint *ascent,
                                           gint *descent);

#endif /* __GTK_PS_FONT_H__ */

Generated by  Doxygen 1.6.0   Back to index