~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/libnrtype/font-style.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SEEN_LIBNRTYPE_FONT_STYLE_H
 
2
#define SEEN_LIBNRTYPE_FONT_STYLE_H
 
3
 
 
4
#include <2geom/matrix.h>
 
5
#include <livarot/LivarotDefs.h>
 
6
#include <livarot/livarot-forward.h>
 
7
 
 
8
// structure that holds data describing how to render glyphs of a font
 
9
 
 
10
// Different raster styles.
 
11
struct font_style {
 
12
    Geom::Matrix  transform; // the ctm. contains the font-size
 
13
    bool          vertical;  // should be rendered vertically or not? 
 
14
                                // good font support would take the glyph alternates for vertical mode, when present
 
15
    double        stroke_width; // if 0, the glyph is filled; otherwise stroked
 
16
    JoinType      stroke_join;
 
17
    ButtType      stroke_cap;
 
18
    float         stroke_miter_limit;
 
19
    int           nbDash;
 
20
    double        dash_offset;
 
21
    double*       dashes;
 
22
 
 
23
    void          Apply(Path *src, Shape *dst); // utility: applies the style to the path and stores the result in the shape
 
24
};
 
25
 
 
26
 
 
27
#endif /* !SEEN_LIBNRTYPE_FONT_STYLE_H */
 
28
 
 
29
/*
 
30
  Local Variables:
 
31
  mode:c++
 
32
  c-file-style:"stroustrup"
 
33
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
34
  indent-tabs-mode:nil
 
35
  fill-column:99
 
36
  End:
 
37
*/
 
38
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :