~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/sp-glyph-kerning.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef HAVE_CONFIG_H
 
2
# include <config.h>
 
3
#endif
 
4
 
 
5
#ifdef ENABLE_SVG_FONTS
 
6
#ifndef __SP_GLYPH_KERNING_H__
 
7
#define __SP_GLYPH_KERNING_H__
 
8
 
 
9
/*
 
10
 * SVG <hkern> and <vkern> elements implementation
 
11
 *
 
12
 * Authors:
 
13
 *    Felipe C. da S. Sanches <felipe.sanches@gmail.com>
 
14
 *
 
15
 * Copyright (C) 2008 Felipe C. da S. Sanches
 
16
 *
 
17
 * Released under GNU GPL, read the file 'COPYING' for more information
 
18
 */
 
19
 
 
20
#include "sp-object.h"
 
21
#include "unicoderange.h"
 
22
 
 
23
#define SP_TYPE_HKERN (sp_glyph_kerning_h_get_type ())
 
24
#define SP_HKERN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_HKERN, SPHkern))
 
25
#define SP_HKERN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_HKERN, SPGlyphKerningClass))
 
26
#define SP_IS_HKERN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_HKERN))
 
27
#define SP_IS_HKERN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_HKERN))
 
28
 
 
29
#define SP_TYPE_VKERN (sp_glyph_kerning_v_get_type ())
 
30
#define SP_VKERN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_VKERN, SPVkern))
 
31
#define SP_VKERN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_VKERN, SPGlyphKerningClass))
 
32
#define SP_IS_VKERN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_VKERN))
 
33
#define SP_IS_VKERN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_VKERN))
 
34
 
 
35
class GlyphNames{
 
36
public: 
 
37
GlyphNames(const gchar* value);
 
38
~GlyphNames();
 
39
bool contains(const char* name);
 
40
private:
 
41
gchar* names;
 
42
};
 
43
 
 
44
struct SPGlyphKerning : public SPObject {
 
45
    UnicodeRange* u1;
 
46
    GlyphNames* g1;
 
47
    UnicodeRange* u2;
 
48
    GlyphNames* g2;
 
49
    double k;
 
50
};
 
51
 
 
52
struct SPHkern : public SPGlyphKerning {};
 
53
struct SPVkern : public SPGlyphKerning {};
 
54
 
 
55
struct SPGlyphKerningClass {
 
56
        SPObjectClass parent_class;
 
57
};
 
58
 
 
59
GType sp_glyph_kerning_h_get_type (void);
 
60
GType sp_glyph_kerning_v_get_type (void);
 
61
 
 
62
#endif //#ifndef __SP_GLYPH_KERNING_H__
 
63
#endif //#ifdef ENABLE_SVG_FONTS