Logo Search packages:      
Sourcecode: inkscape version File versions


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