Logo Search packages:      
Sourcecode: inkscape version File versions  Download package


Go to the documentation of this file.
/** @file
 * @brief Definition of struct one_glyph
/* This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * See the file COPYING for details.


#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.
00023 struct one_glyph {
00024     int gl;  ///< glyph_id
00025     double x, y; ///< glyph position in the layout (nominal sizes, in the [0..1] range).
00026     bool char_start; /**< Whether this glyph is the beginning of a letter. (RTL is taken in
                      * account.) */
00028     bool word_start; ///< Whether this glyph is the beginning of a word.
00029     bool para_start; ///< Whether this glyph is the beginning of a paragraph (for indentation).
00030     char uni_dir;    ///< BiDi orientation of the run containing this glyph.
00031     int uni_st, uni_en; /**< Start and end positions of the text corresponding to this glyph.
                         * You always have uni_st < uni_en. */
00033     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