"Fossies" - the Fresh Open Source Software Archive

Member "pango-1.44.7/pango/pangoxft.h" (25 Oct 2019, 4548 Bytes) of package /linux/misc/pango-1.44.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "pangoxft.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.43.0_vs_1.44.0.

    1 /* Pango
    2  * pangoxft.h:
    3  *
    4  * Copyright (C) 1999 Red Hat Software
    5  * Copyright (C) 2000 SuSE Linux Ltd
    6  *
    7  * This library is free software; you can redistribute it and/or
    8  * modify it under the terms of the GNU Library General Public
    9  * License as published by the Free Software Foundation; either
   10  * version 2 of the License, or (at your option) any later version.
   11  *
   12  * This library is distributed in the hope that it will be useful,
   13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   15  * Library General Public License for more details.
   16  *
   17  * You should have received a copy of the GNU Library General Public
   18  * License along with this library; if not, write to the
   19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   20  * Boston, MA 02111-1307, USA.
   21  */
   22 
   23 #ifndef __PANGOXFT_H__
   24 #define __PANGOXFT_H__
   25 
   26 #include <pango/pango-context.h>
   27 #include <pango/pango-ot.h>
   28 #include <pango/pangofc-font.h>
   29 #include <pango/pango-layout.h>
   30 #include <pango/pangoxft-render.h>
   31 
   32 G_BEGIN_DECLS
   33 
   34 /**
   35  * PANGO_RENDER_TYPE_XFT:
   36  *
   37  * A string constant that was used to identify shape engines that work
   38  * with the Xft backend. See %PANGO_RENDER_TYPE_FC for the replacement.
   39  */
   40 #ifndef PANGO_DISABLE_DEPRECATED
   41 #define PANGO_RENDER_TYPE_XFT "PangoRenderXft"
   42 #endif
   43 
   44 /**
   45  * PangoXftFontMap:
   46  *
   47  * #PangoXftFontMap is an implementation of #PangoFcFontMap suitable for
   48  * the Xft library as the renderer.  It is used in to create fonts of
   49  * type #PangoXftFont.
   50  */
   51 #define PANGO_TYPE_XFT_FONT_MAP              (pango_xft_font_map_get_type ())
   52 #define PANGO_XFT_FONT_MAP(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_XFT_FONT_MAP, PangoXftFontMap))
   53 #define PANGO_XFT_IS_FONT_MAP(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_FONT_MAP))
   54 
   55 typedef struct _PangoXftFontMap      PangoXftFontMap;
   56 
   57 /**
   58  * PangoXftFont:
   59  *
   60  * #PangoXftFont is an implementation of #PangoFcFont using the Xft
   61  * library for rendering.  It is used in conjunction with #PangoXftFontMap.
   62  */
   63 typedef struct _PangoXftFont    PangoXftFont;
   64 
   65 /**
   66  * PangoXftSubstituteFunc:
   67  * @pattern: the FcPattern to tweak.
   68  * @data: user data.
   69  *
   70  * Function type for doing final config tweaking on prepared FcPatterns.
   71  */
   72 typedef void (*PangoXftSubstituteFunc) (FcPattern *pattern,
   73                     gpointer   data);
   74 
   75 /* Calls for applications
   76  */
   77 PANGO_AVAILABLE_IN_1_2
   78 PangoFontMap *pango_xft_get_font_map     (Display *display,
   79                       int      screen);
   80 #ifndef PANGO_DISABLE_DEPRECATED
   81 PANGO_DEPRECATED
   82 PangoContext *pango_xft_get_context      (Display *display,
   83                       int      screen);
   84 #endif
   85 PANGO_AVAILABLE_IN_1_2
   86 void          pango_xft_shutdown_display (Display *display,
   87                       int      screen);
   88 
   89 PANGO_AVAILABLE_IN_1_2
   90 void pango_xft_set_default_substitute (Display                *display,
   91                        int                     screen,
   92                        PangoXftSubstituteFunc  func,
   93                        gpointer                data,
   94                        GDestroyNotify          notify);
   95 PANGO_AVAILABLE_IN_1_2
   96 void pango_xft_substitute_changed     (Display                *display,
   97                        int                     screen);
   98 
   99 PANGO_AVAILABLE_IN_ALL
  100 GType pango_xft_font_map_get_type (void) G_GNUC_CONST;
  101 
  102 #define PANGO_XFT_FONT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_XFT_FONT, PangoXftFont))
  103 #define PANGO_TYPE_XFT_FONT              (pango_xft_font_get_type ())
  104 #define PANGO_XFT_IS_FONT(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_FONT))
  105 
  106 PANGO_AVAILABLE_IN_ALL
  107 GType      pango_xft_font_get_type (void) G_GNUC_CONST;
  108 
  109 /* For shape engines
  110  */
  111 
  112 #ifndef PANGO_DISABLE_DEPRECATED
  113 
  114 PANGO_DEPRECATED
  115 XftFont *     pango_xft_font_get_font          (PangoFont *font);
  116 PANGO_DEPRECATED
  117 Display *     pango_xft_font_get_display       (PangoFont *font);
  118 PANGO_DEPRECATED_FOR(pango_fc_font_lock_face)
  119 FT_Face       pango_xft_font_lock_face         (PangoFont *font);
  120 PANGO_DEPRECATED_FOR(pango_fc_font_unlock_face)
  121 void          pango_xft_font_unlock_face       (PangoFont *font);
  122 PANGO_DEPRECATED_FOR(pango_fc_font_get_glyph)
  123 guint         pango_xft_font_get_glyph         (PangoFont *font,
  124                         gunichar   wc);
  125 PANGO_DEPRECATED_FOR(pango_fc_font_has_char)
  126 gboolean      pango_xft_font_has_char          (PangoFont *font,
  127                         gunichar   wc);
  128 PANGO_DEPRECATED_FOR(PANGO_GET_UNKNOWN_GLYPH)
  129 PangoGlyph    pango_xft_font_get_unknown_glyph (PangoFont *font,
  130                         gunichar   wc);
  131 #endif /* PANGO_DISABLE_DEPRECATED */
  132 
  133 G_END_DECLS
  134 
  135 #endif /* __PANGOXFT_H__ */