Logo Search packages:      
Sourcecode: inkscape version File versions


/** \file Definition of struct one_glyph. */

 * License: May be redistributed with or without modifications under the terms of the Gnu General
 * Public License as published by the Free Software Foundation, version 2 or (at your option) any
 * later version.


#include <pango/pango-types.h>

 * Information for a single glyph.
 * Pango converts the text into glyphs, but scatters the info for a given glyph; here is a
 * structure holding what inkscape needs to know.
00020 struct one_glyph {
00021     int gl;  ///< glyph_id
00022     double x, y; ///< glyph position in the layout (nominal sizes, in the [0..1] range).
00023     bool char_start; /**< Whether this glyph is the beginning of a letter. (RTL is taken in
                      * account.) */
00025     bool word_start; ///< Whether this glyph is the beginning of a word.
00026     bool para_start; ///< Whether this glyph is the beginning of a paragraph (for indentation).
00027     char uni_dir;    ///< BiDi orientation of the run containing this glyph.
00028     int uni_st, uni_en; /**< Start and end positions of the text corresponding to this glyph.
                         * You always have uni_st < uni_en. */
00030     PangoFont *font;  /**< Font this glyph uses.  (For bidi text, you need several fonts.)
                       * When rendering glyphs, check if this font is the one you're using. */


  Local Variables:
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :

Generated by  Doxygen 1.6.0   Back to index