~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/helper/units.h

  • Committer: cilix42
  • Date: 2008-02-03 14:56:48 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080203145648-83e2vwisp6jnzwv7
Make units pc (pica) and ft (feet) work correctly. Closes: LP #167943.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
enum SPUnitId {
63
63
        SP_UNIT_SCALE,  // 1.0 == 100%
64
64
        SP_UNIT_PT,     // Postscript points: exactly 72 per inch
 
65
        SP_UNIT_PC,     // Pica; there are 12 points per pica
65
66
        SP_UNIT_PX,     // "Pixels" in the CSS sense; though Inkscape assumes a constant 90 per inch.
66
67
        SP_UNIT_PERCENT,  /* Note: In Inkscape this often means "relative to current value" (for
67
68
                             users to edit a value), rather than the SVG/CSS use of percentages. */
69
70
        SP_UNIT_CM,     // centimetres
70
71
        SP_UNIT_M,      // metres
71
72
        SP_UNIT_IN,     // inches
 
73
        SP_UNIT_FT,     // foot
72
74
        SP_UNIT_EM,     // font-size of relevant font
73
75
        SP_UNIT_EX,     // x-height of relevant font
74
76
        sp_max_unit_id = SP_UNIT_EX     // For bounds-checking in sp_unit_get_by_id.