Commit bf38a1f
Oblique and italic transformation
Changed files (6)
modifiedgraphics/tools_and_buttons.svgaddedicons/skew.pngmodifiedlibbirdfont/DrawingTools.valamodifiedlibbirdfont/Path.valamodifiedlibbirdfont/ResizeTool.valamodifiedlibbirdfont/SvgParser.vala
Diff
@@ -905,9 +905,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2"- inkscape:zoom="22.627417"- inkscape:cx="164.46255"- inkscape:cy="650.7393"+ inkscape:zoom="2"+ inkscape:cx="184.94892"+ inkscape:cy="563.78668" inkscape:current-layer="layer1" inkscape:document-units="px" showgrid="false"@@ -1158,14 +1158,14 @@ sodipodi:rx="11.086297" sodipodi:ry="11.086297" d="m 29.563458,87.187637 a 11.086297,11.086297 0 1 1 -22.1725936,0 11.086297,11.086297 0 1 1 22.1725936,0 z"- transform="matrix(0.72777089,0,0,0.72777089,5.8828133,70.882221)"+ transform="matrix(0.72777089,0,0,0.72777089,5.8828133,94.88222)" inkscape:export-filename="/home/johan/birdfont/icons/quadratic_points.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4162"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 18.396109,88.915932 3.442382,0 0,0.830078 -4.628906,0 0,-0.830078 c 0.374348,-0.387369 0.883788,-0.906574 1.528321,-1.557617 0.647783,-0.654294 1.054684,-1.075843 1.220703,-1.264649 0.315751,-0.354814 0.535477,-0.654292 0.659179,-0.898437 0.126949,-0.247391 0.190426,-0.489904 0.19043,-0.727539 -4e-6,-0.387365 -0.136723,-0.70312 -0.410156,-0.947266 -0.270186,-0.244134 -0.623376,-0.366204 -1.059571,-0.366211 -0.309247,7e-6 -0.636395,0.05372 -0.981445,0.161133 -0.341798,0.107428 -0.708009,0.270188 -1.098633,0.488281 l 0,-0.996094 c 0.397135,-0.159498 0.768228,-0.27994 1.113282,-0.361328 0.345049,-0.08137 0.660804,-0.122063 0.947265,-0.12207 0.755205,7e-6 1.357418,0.188809 1.806641,0.566406 0.449213,0.377611 0.673823,0.882168 0.673828,1.513672 -5e-6,0.299484 -0.05697,0.584315 -0.170898,0.854492 -0.110683,0.266931 -0.314133,0.582686 -0.610352,0.947266 -0.08139,0.0944 -0.340174,0.367841 -0.776367,0.820312 -0.436201,0.449221 -1.051435,1.079103 -1.845703,1.889649" id="path3793"@@ -1175,7 +1175,7 @@ inkscape:export-ydpi="319.88824" inkscape:export-xdpi="319.88824" inkscape:export-filename="/home/johan/birdfont/icons/cubic_points.png"- transform="matrix(0.72777089,0,0,0.72777089,41.415817,71.166485)"+ transform="matrix(0.72777089,0,0,0.72777089,41.415817,95.16648)" d="m 29.563458,87.187637 a 11.086297,11.086297 0 1 1 -22.1725936,0 11.086297,11.086297 0 1 1 22.1725936,0 z" sodipodi:ry="11.086297" sodipodi:rx="11.086297"@@ -1187,7 +1187,7 @@ <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4175"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 56.067783,86.099609 c 0.472001,0.100916 0.839839,0.310876 1.103516,0.629883 0.266922,0.319014 0.400385,0.712893 0.400391,1.181641 -6e-6,0.719402 -0.247402,1.276042 -0.742188,1.669922 -0.494796,0.39388 -1.19792,0.59082 -2.109375,0.59082 -0.305992,0 -0.621747,-0.03092 -0.947266,-0.09277 -0.322267,-0.05859 -0.655925,-0.148112 -1.000976,-0.268555 l 0,-0.952149 c 0.273436,0.159507 0.572915,0.279949 0.898437,0.361329 0.325519,0.08138 0.665688,0.122071 1.020508,0.12207 0.618487,10e-7 1.088864,-0.12207 1.411133,-0.366211 0.325516,-0.244139 0.488277,-0.598957 0.488281,-1.064453 -4e-6,-0.429685 -0.151371,-0.764971 -0.454101,-1.00586 -0.299483,-0.244137 -0.717777,-0.366207 -1.254883,-0.366211 l -0.849609,0 0,-0.810546 0.888671,0 c 0.485023,4e-6 0.856116,-0.09602 1.113282,-0.288086 0.257157,-0.195308 0.385737,-0.475256 0.385742,-0.839844 -5e-6,-0.374343 -0.133468,-0.660801 -0.400391,-0.859375 -0.263675,-0.201816 -0.642907,-0.302728 -1.137695,-0.302734 -0.270185,6e-6 -0.559898,0.0293 -0.869141,0.08789 -0.309246,0.0586 -0.649415,0.149746 -1.020508,0.273438 l 0,-0.878907 c 0.374348,-0.104159 0.724283,-0.182284 1.049805,-0.234375 0.328774,-0.05208 0.638018,-0.07812 0.927735,-0.07813 0.748694,8e-6 1.341141,0.170906 1.777343,0.512696 0.436193,0.338548 0.654292,0.797532 0.654297,1.376953 -5e-6,0.403651 -0.115565,0.745447 -0.34668,1.02539 -0.231124,0.276697 -0.5599,0.468755 -0.986328,0.576172" id="path3790"@@ -1202,14 +1202,14 @@ sodipodi:rx="11.086297" sodipodi:ry="11.086297" d="m 29.563458,87.187637 a 11.086297,11.086297 0 1 1 -22.1725936,0 11.086297,11.086297 0 1 1 22.1725936,0 z"- transform="matrix(0.72777089,0,0,0.72777089,80.644254,71.735013)"+ transform="matrix(0.72777089,0,0,0.72777089,80.644254,95.73501)" inkscape:export-filename="/home/johan/birdfont/icons/double_points.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g style="font-size:6.97485256px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4183"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 89.103161,88.897221 2.401011,0 0,0.578968 -3.228594,0 0,-0.578968 c 0.261102,-0.270183 0.616429,-0.632321 1.065981,-1.086415 0.45182,-0.45636 0.735627,-0.750384 0.851423,-0.882073 0.220231,-0.247478 0.373487,-0.45636 0.459768,-0.626647 0.08854,-0.172552 0.132818,-0.341701 0.132822,-0.507448 -4e-6,-0.270181 -0.09536,-0.490415 -0.286078,-0.660704 -0.188451,-0.17028 -0.434796,-0.255422 -0.739035,-0.255426 -0.215696,4e-6 -0.443877,0.03747 -0.684544,0.112387 -0.238399,0.07493 -0.493826,0.188453 -0.76628,0.340569 l 0,-0.69476 c 0.276995,-0.111248 0.535828,-0.195255 0.776497,-0.252021 0.240668,-0.05676 0.460902,-0.08514 0.660704,-0.08514 0.526744,5e-6 0.946779,0.131692 1.260105,0.39506 0.31332,0.263378 0.469982,0.615299 0.469986,1.055764 -4e-6,0.208886 -0.03974,0.407551 -0.1192,0.595996 -0.0772,0.18618 -0.219102,0.406415 -0.425711,0.660704 -0.05676,0.06584 -0.237266,0.256564 -0.541504,0.572155 -0.304244,0.313326 -0.733361,0.752659 -1.287351,1.318002" id="path3783"@@ -1232,14 +1232,14 @@ sodipodi:rx="11.086297" sodipodi:ry="11.086297" d="m 29.563458,87.187637 a 11.086297,11.086297 0 1 1 -22.1725936,0 11.086297,11.086297 0 1 1 22.1725936,0 z"- transform="matrix(0.72777089,0,0,0.72777089,117.31431,72.019277)"+ transform="matrix(0.72777089,0,0,0.72777089,117.31431,96.01928)" inkscape:export-filename="/home/johan/birdfont/icons/convert_point.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4228"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 133.4963,84.154549 0,1.040039 c -0.33204,-0.309239 -0.68685,-0.540359 -1.06445,-0.69336 -0.37436,-0.152988 -0.77312,-0.229485 -1.19629,-0.229492 -0.83334,7e-6 -1.47136,0.25554 -1.91406,0.766602 -0.44272,0.507818 -0.66407,1.243494 -0.66407,2.207031 0,0.960289 0.22135,1.695965 0.66407,2.207031 0.4427,0.507814 1.08072,0.76172 1.91406,0.761719 0.42317,10e-7 0.82193,-0.0765 1.19629,-0.229492 0.3776,-0.152994 0.73241,-0.384114 1.06445,-0.69336 l 0,1.030274 c -0.34506,0.234375 -0.71127,0.410156 -1.09863,0.527344 -0.38412,0.117187 -0.79102,0.175781 -1.22071,0.175781 -1.10351,0 -1.97265,-0.336914 -2.60742,-1.010742 -0.63476,-0.677082 -0.95215,-1.599933 -0.95215,-2.768555 0,-1.17187 0.31739,-2.094721 0.95215,-2.768555 0.63477,-0.677076 1.50391,-1.015617 2.60742,-1.015625 0.4362,8e-6 0.84635,0.0586 1.23047,0.175782 0.38737,0.113939 0.75032,0.286465 1.08887,0.517578" id="path3780"@@ -1247,7 +1247,7 @@ </g> <g id="g4279"- transform="matrix(0.92095423,0,0,0.92095423,-4.7686532,40.472287)"+ transform="matrix(0.92095423,0,0,0.92095423,-4.7686532,64.472287)" inkscape:export-filename="/home/johan/birdfont/icons/tie_point.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824"@@ -1297,7 +1297,7 @@ inkscape:export-ydpi="319.88824" inkscape:export-xdpi="319.88824" inkscape:export-filename="/home/johan/birdfont/icons/symmetric.png"- transform="matrix(0.66380748,0.63837005,-0.63837005,0.66380748,124.38187,59.290357)"+ transform="matrix(0.66380748,0.63837005,-0.63837005,0.66380748,124.38187,83.290357)" id="g4286" style="stroke:#858585"> <path@@ -1343,7 +1343,7 @@ </g> <g id="g4307"- transform="translate(0,22)">+ transform="translate(0,46)"> <path inkscape:export-ydpi="321.42578" inkscape:export-xdpi="321.42578"@@ -1403,7 +1403,7 @@ </g> <g id="g4386"- transform="translate(-2.0100503,49.20603)"+ transform="translate(-2.0100503,73.20603)" style="stroke:#858585" inkscape:export-filename="/home/johan/birdfont/icons/union_paths.png" inkscape:export-xdpi="319.88824"@@ -1431,7 +1431,7 @@ </g> <path style="fill:#ffffff;fill-opacity:1;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="M 65.509934,199.70904 62.576459,198.839 c 0,0 3.146673,-3.71372 2.720277,-6.41423 -0.426396,-2.70051 -4.583758,-4.58376 -4.583758,-4.58376 l -3.269036,1.70559 c 0,0 4.157361,1.24365 4.690357,3.58883 0.532995,2.34518 -1.193404,4.9822 -1.193404,4.9822 l -2.39543,-1.57103 -0.03553,5.36548 z"+ d="M 65.509934,223.70904 62.576459,222.839 c 0,0 3.146673,-3.71372 2.720277,-6.41423 -0.426396,-2.70051 -4.583758,-4.58376 -4.583758,-4.58376 l -3.269036,1.70559 c 0,0 4.157361,1.24365 4.690357,3.58883 0.532995,2.34518 -1.193404,4.9822 -1.193404,4.9822 l -2.39543,-1.57103 -0.03553,5.36548 z" id="path4415-7" inkscape:connector-curvature="0" sodipodi:nodetypes="ccsccscccc"@@ -1442,14 +1442,14 @@ sodipodi:nodetypes="ccsccscccc" inkscape:connector-curvature="0" id="path4435"- d="m 47.594696,190.04406 2.832972,0.87004 c 0,0 -3.146673,3.06045 -2.619774,6.41423 0.424318,2.70083 4.583758,4.58375 4.583758,4.58375 l 3.269036,-1.70558 c 0,0 -4.157361,-1.24366 -4.690357,-3.58884 -0.532995,-2.34517 1.494912,-4.83144 1.494912,-4.83144 l 2.093922,1.42028 0.03553,-5.36549 z"+ d="m 47.594696,214.04406 2.832972,0.87004 c 0,0 -3.146673,3.06045 -2.619774,6.41423 0.424318,2.70083 4.583758,4.58375 4.583758,4.58375 l 3.269036,-1.70558 c 0,0 -4.157361,-1.24366 -4.690357,-3.58884 -0.532995,-2.34517 1.494912,-4.83144 1.494912,-4.83144 l 2.093922,1.42028 0.03553,-5.36549 z" style="fill:#858585;fill-opacity:1;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" inkscape:export-filename="/home/johan/birdfont/icons/reverse_path.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path style="fill:#858585;stroke:#858585;stroke-width:0.20579898;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 125.41904,187.18326 0,7.13575 18.61499,0 z"+ d="m 125.41904,211.18326 0,7.13575 18.61499,0 z" id="path4441" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/flip_vertical.png"@@ -1458,14 +1458,14 @@ <path inkscape:connector-curvature="0" id="path4443"- d="m 125.68131,203.3475 0,-6.93467 18.09045,0 z"+ d="m 125.68131,227.3475 0,-6.93467 18.09045,0 z" style="fill:#ffffff;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" inkscape:export-filename="/home/johan/birdfont/icons/flip_vertical.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path style="fill:#858585;stroke:#858585;stroke-width:0.20966497;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 160.68647,203.66003 7.26979,0 0,-18.96467 z"+ d="m 160.68647,227.66003 7.26979,0 0,-18.96467 z" id="path4441-4" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/flip_horizontal.png"@@ -1474,14 +1474,14 @@ <path inkscape:connector-curvature="0" id="path4443-1"- d="m 176.91773,203.22292 -6.93467,0 0,-18.09045 z"+ d="m 176.91773,227.22292 -6.93467,0 0,-18.09045 z" style="fill:#ffffff;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" inkscape:export-filename="/home/johan/birdfont/icons/flip_horizontal.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g id="g4487"- transform="translate(76.4532,176.15764)"+ transform="translate(76.4532,200.15764)" inkscape:export-filename="/home/johan/birdfont/icons/move_layer.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824"@@ -1516,14 +1516,14 @@ width="21.933529" height="11.810362" x="9.7123642"- y="220.47452"+ y="244.47452" inkscape:export-filename="/home/johan/birdfont/icons/utf_8.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;opacity:0.72016458;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4497"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 12.64363,174.83897 0.991211,0 0,4.42871 c -2e-6,0.78126 0.1416,1.34441 0.424805,1.68946 0.2832,0.3418 0.742184,0.51269 1.376953,0.51269 0.631506,0 1.088862,-0.17089 1.37207,-0.51269 0.283198,-0.34505 0.424799,-0.9082 0.424805,-1.68946 l 0,-4.42871 0.991211,0 0,4.55079 c -7e-6,0.95052 -0.236009,1.66829 -0.708008,2.15332 -0.468755,0.48502 -1.162114,0.72753 -2.080078,0.72753 -0.921227,0 -1.617841,-0.24251 -2.089844,-0.72753 -0.468751,-0.48503 -0.703126,-1.2028 -0.703125,-2.15332 l 0,-4.55079" id="path3743"@@ -1543,13 +1543,13 @@ width="21.933529" height="11.810362" x="45.76828"- y="220.47453"+ y="244.47455" inkscape:export-filename="/home/johan/birdfont/icons/custom_character_set.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path style="opacity:0.72016458;fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 56.43679,220.61341 0,11.66515"+ d="m 56.43679,244.61341 0,11.66515" id="path4549" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/custom_character_set.png"@@ -1558,7 +1558,7 @@ <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;opacity:0.72016458;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4555"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 51.271595,175.67355 -1.337891,3.62793 2.680664,0 -1.342773,-3.62793 m -0.556641,-0.97168 1.118164,0 2.778321,7.29004 -1.025391,0 -0.664062,-1.87011 -3.286133,0 -0.664063,1.87011 -1.040039,0 2.783203,-7.29004" id="path3750"@@ -1570,13 +1570,13 @@ width="21.933529" height="11.810362" x="83.516129"- y="220.51407"+ y="244.51407" inkscape:export-filename="/home/johan/birdfont/icons/available_characters.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path style="opacity:0.72016458;fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 94.184637,220.65295 0,11.66515"+ d="m 94.184637,244.65295 0,11.66515" id="path4549-8" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/available_characters.png"@@ -1585,7 +1585,7 @@ <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;opacity:0.72016458;fill:#515151;fill-opacity:1;stroke:none;font-family:Sans" id="text4555-5"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 87.569244,178.55 0,2.6709 1.582032,0 c 0.530595,0 0.922847,-0.10905 1.176757,-0.32715 0.257157,-0.22135 0.385738,-0.55826 0.385743,-1.01074 -5e-6,-0.45573 -0.128586,-0.79101 -0.385743,-1.00586 -0.25391,-0.21809 -0.646162,-0.32714 -1.176757,-0.32715 l -1.582032,0 m 0,-2.99804 0,2.19726 1.459961,0 c 0.481767,1e-5 0.83984,-0.0895 1.074219,-0.26855 0.237626,-0.18229 0.356441,-0.45898 0.356445,-0.83008 -4e-6,-0.36783 -0.118819,-0.6429 -0.356445,-0.8252 -0.234379,-0.18228 -0.592452,-0.27343 -1.074219,-0.27343 l -1.459961,0 m -0.986328,-0.81055 2.519532,0 c 0.751948,1e-5 1.331375,0.15626 1.738281,0.46875 0.406895,0.31251 0.610345,0.75684 0.610351,1.33301 -6e-6,0.44597 -0.104172,0.80078 -0.3125,1.06445 -0.208338,0.26368 -0.514328,0.42806 -0.917968,0.49316 0.485021,0.10417 0.860997,0.32227 1.127929,0.6543 0.270177,0.32878 0.405268,0.74056 0.405274,1.23535 -6e-6,0.65105 -0.22136,1.15397 -0.664063,1.50879 -0.442713,0.35482 -1.072595,0.53223 -1.889648,0.53223 l -2.617188,0 0,-7.29004" id="path3753"@@ -1597,13 +1597,13 @@ width="11.247968" height="11.341699" x="128.41425"- y="220.88899"+ y="244.88898" inkscape:export-filename="/home/johan/birdfont/icons/delete_selected_glyph.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path style="opacity:0.72016458;fill:none;stroke:#515151;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 131.03878,223.4198 5.85831,5.85831"+ d="m 131.03878,247.4198 5.85831,5.85831" id="path4628" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/delete_selected_glyph.png"@@ -1612,13 +1612,13 @@ <path inkscape:connector-curvature="0" id="path4630"- d="m 136.89709,223.4198 -5.85831,5.85831"+ d="m 136.89709,247.4198 -5.85831,5.85831" style="opacity:0.72016458;fill:none;stroke:#515151;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" inkscape:export-filename="/home/johan/birdfont/icons/delete_selected_glyph.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <g- transform="translate(1.9570477,236.73145)"+ transform="translate(1.9570477,260.73145)" id="g4647" inkscape:export-filename="/home/johan/birdfont/icons/help_lines.png" inkscape:export-xdpi="319.88824"@@ -1644,7 +1644,7 @@ </g> <g id="g4818"- transform="translate(37.063711,235.33289)"+ transform="translate(37.063711,259.33289)" inkscape:export-filename="/home/johan/birdfont/icons/show_xheight_helplines.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824"@@ -1696,7 +1696,7 @@ </g> <g id="g4828"- transform="translate(38.272311,234.93002)"+ transform="translate(38.272311,258.93002)" inkscape:export-filename="/home/johan/birdfont/icons/background_help_lines.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824"@@ -1770,7 +1770,7 @@ </g> <g id="g4842"- transform="translate(42.703841,233.72142)"+ transform="translate(42.703841,257.72142)" inkscape:export-filename="/home/johan/birdfont/icons/new_grid.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824"@@ -1888,7 +1888,7 @@ </g> <path style="fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 20.653045,280.16031 0,16.23757"+ d="m 20.653045,304.16031 0,16.23757" id="path4866" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/zoom_in.png"@@ -1897,7 +1897,7 @@ <path inkscape:connector-curvature="0" id="path4868"- d="m 28.771828,288.27909 -16.237566,0"+ d="m 28.771828,312.27909 -16.237566,0" style="fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" inkscape:export-filename="/home/johan/birdfont/icons/zoom_in.png" inkscape:export-xdpi="319.88824"@@ -1905,7 +1905,7 @@ <path inkscape:connector-curvature="0" id="path4868-4"- d="m 65.947309,288.7064 -16.237566,0"+ d="m 65.947309,312.7064 -16.237566,0" style="fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" inkscape:export-filename="/home/johan/birdfont/icons/zoom_out.png" inkscape:export-xdpi="319.88824"@@ -1913,7 +1913,7 @@ <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#858585;fill-opacity:1;stroke:none;font-family:Sans" id="text4900"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 87.570328,243.05992 1.611328,0 0,-5.56152 -1.75293,0.35156 0,-0.89844 1.743164,-0.35156 0.986328,0 0,6.45996 1.611329,0 0,0.83008 -4.199219,0 0,-0.83008" id="path3756"@@ -1933,7 +1933,7 @@ inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" style="stroke:#858585"- transform="translate(0,48)">+ transform="translate(0,72)"> <g id="g4949" style="stroke:#858585">@@ -1958,7 +1958,7 @@ <g style="font-size:10px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#858585;fill-opacity:1;stroke:none;font-family:Sans" id="text4900-4"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 166.07191,235.79424 4.18946,0 0,0.83007 -3.20313,0 0,2.14844 2.89063,0 0,0.83008 -2.89063,0 0,3.48144 -0.98633,0 0,-7.29003" id="path3777"@@ -1970,7 +1970,7 @@ inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" style="stroke:#858585"- transform="translate(0,48)">+ transform="translate(0,72)"> <rect y="261.59686" x="14.906057"@@ -1988,7 +1988,7 @@ </g> <path style="fill:#858585;fill-opacity:1;stroke:#858585;stroke-width:0.75875157px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 60.625062,310.21845 -4.164829,4.16483 4.241248,3.40063 z"+ d="m 60.625062,334.21845 -4.164829,4.16483 4.241248,3.40063 z" id="path4987" inkscape:connector-curvature="0" sodipodi:nodetypes="cccc"@@ -2002,10 +2002,10 @@ sodipodi:nodetypes="cccc" inkscape:connector-curvature="0" id="path4995"- d="m 91.217704,310.335 4.16483,4.16484 -4.241248,3.40062 z"+ d="m 91.217704,334.335 4.16483,4.16484 -4.241248,3.40062 z" style="fill:#858585;stroke:#858585;stroke-width:0.75875175px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path- transform="translate(1.4685975,321.93236)"+ transform="translate(1.4685975,345.93236)" sodipodi:type="arc" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" id="path4997"@@ -2023,12 +2023,12 @@ width="19.014492" height="9.275362" x="47.30991"- y="338.75497"+ y="362.75497" inkscape:export-filename="/home/johan/birdfont/icons/rectangle.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path- transform="translate(0.97062047,351.36179)"+ transform="translate(0.97062047,375.36179)" sodipodi:type="arc" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" id="path4997-5"@@ -2043,7 +2043,7 @@ <g id="g3261-7" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:1.50041127;stroke-miterlimit:4;stroke-dasharray:none"- transform="matrix(0.53318716,0,0,0.53318716,-10.056373,361.74273)"+ transform="matrix(0.53318716,0,0,0.53318716,-10.056373,385.74273)" inkscape:export-filename="/home/johan/birdfont/icons/move_background.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824">@@ -2141,7 +2141,7 @@ </g> <path style="fill:none;stroke:#858585;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 51.210827,379.78125 5.46875,-6.96875 1.5,-2.5 c 0,0 -0.881708,-1.24603 -0.0218,-2.56292 0.828737,-1.26915 1.78525,-1.22614 2.396802,-0.93708 0.714017,0.33749 0.40625,1.78125 0.03125,2.21875 -0.375,0.4375 -0.979299,1.44858 -1.78125,1.8125 -0.647009,0.29361 -2.125,1.96875 -2.125,1.96875 l 0.28125,0.65625 0.46875,0.4375 2.4375,-2 c 0.527035,-0.93076 1.352632,-1.70578 1.914866,-2.30264 0.628909,-0.66763 1.890648,-0.31474 2.219997,0.53125 0.32935,0.846 -1.16689,2.23877 -1.997923,2.3968 -0.427599,0.0813 -1.60569,-0.15666 -1.76194,-0.25041 C 60.085827,372.1875 57.023327,374.5 57.023327,374.5 z"+ d="m 51.210827,403.78125 5.46875,-6.96875 1.5,-2.5 c 0,0 -0.881708,-1.24603 -0.0218,-2.56292 0.828737,-1.26915 1.78525,-1.22614 2.396802,-0.93708 0.714017,0.33749 0.40625,1.78125 0.03125,2.21875 -0.375,0.4375 -0.979299,1.44858 -1.78125,1.8125 -0.647009,0.29361 -2.125,1.96875 -2.125,1.96875 l 0.28125,0.65625 0.46875,0.4375 2.4375,-2 c 0.527035,-0.93076 1.352632,-1.70578 1.914866,-2.30264 0.628909,-0.66763 1.890648,-0.31474 2.219997,0.53125 0.32935,0.846 -1.16689,2.23877 -1.997923,2.3968 -0.427599,0.0813 -1.60569,-0.15666 -1.76194,-0.25041 C 60.085827,396.1875 57.023327,398.5 57.023327,398.5 z" id="path4399" inkscape:connector-curvature="0" sodipodi:nodetypes="cccssssccccsssscc"@@ -2154,7 +2154,7 @@ width="9.9488487" height="9.541707" x="87.225624"- y="366.46655"+ y="390.46655" inkscape:export-filename="/home/johan/birdfont/icons/show_background.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" />@@ -2162,7 +2162,7 @@ inkscape:export-ydpi="319.88824" inkscape:export-xdpi="319.88824" inkscape:export-filename="/home/johan/birdfont/icons/show_background.png"- y="370.57263"+ y="394.57263" x="90.95842" height="9.541707" width="9.9488487"@@ -2172,7 +2172,7 @@ inkscape:export-ydpi="319.88824" inkscape:export-xdpi="319.88824" inkscape:export-filename="/home/johan/birdfont/icons/insert_background.png"- y="367.47968"+ y="391.47968" x="126.64785" height="11.229433" width="11.70859"@@ -2182,7 +2182,7 @@ xml:space="preserve" style="font-size:10px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#858585;fill-opacity:1;stroke:none;font-family:KacstDigital;-inkscape-font-specification:KacstDigital Medium" x="128.93886"- y="376.78897"+ y="400.78897" id="text4443" sodipodi:linespacing="125%" inkscape:transform-center-y="2.5075108"@@ -2191,7 +2191,7 @@ inkscape:export-ydpi="319.88824"><tspan sodipodi:role="line" x="128.93886"- y="376.78897"+ y="400.78897" id="tspan4447">B</tspan></text> <path sodipodi:type="arc"@@ -2202,7 +2202,7 @@ sodipodi:rx="3.4111683" sodipodi:ry="3.4111683" d="m 16.20305,118.45668 a 3.4111683,3.4111683 0 1 1 -6.8223368,0 3.4111683,3.4111683 0 1 1 6.8223368,0 z"- transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,4.58277,296.74913)"+ transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,4.58277,320.74913)" inkscape:export-filename="/home/johan/birdfont/icons/show_all_line_handles.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" />@@ -2215,12 +2215,12 @@ sodipodi:rx="1.7055842" sodipodi:ry="1.7055842" d="m 21.035538,113.62419 a 1.7055842,1.7055842 0 1 1 -3.411168,0 1.7055842,1.7055842 0 1 1 3.411168,0 z"- transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,4.64577,295.63781)"+ transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,4.64577,319.63781)" inkscape:export-filename="/home/johan/birdfont/icons/show_all_line_handles.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path- transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,16.59752,285.91323)"+ transform="matrix(0.92061286,0.0250729,-0.0250729,0.92061286,16.59752,309.91323)" d="m 16.20305,118.45668 a 3.4111683,3.4111683 0 1 1 -6.8223368,0 3.4111683,3.4111683 0 1 1 6.8223368,0 z" sodipodi:ry="3.4111683" sodipodi:rx="3.4111683"@@ -2234,7 +2234,7 @@ inkscape:export-ydpi="319.88824" /> <path style="fill:none;stroke:#858585;stroke-width:0.92095423px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 15.89417,404.29211 2.40262,-2.27521"+ d="m 15.89417,428.29211 2.40262,-2.27521" id="path4241-1" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/show_all_line_handles.png"@@ -2242,7 +2242,7 @@ inkscape:export-ydpi="319.88824" /> <path style="fill:none;stroke:#858585;stroke-width:0.92095423px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"- d="m 20.89924,399.61617 2.1506,-2.03656"+ d="m 20.89924,423.61617 2.1506,-2.03656" id="path4247-4" inkscape:connector-curvature="0" inkscape:export-filename="/home/johan/birdfont/icons/show_all_line_handles.png"@@ -2250,7 +2250,7 @@ inkscape:export-ydpi="319.88824" /> <path style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 48.32749,396.50903 10.74905,0 0,11.3561 c -1.52246,0.81632 -8.72535,0.87481 -10.74905,0 z"+ d="m 48.32749,420.50903 10.74905,0 0,11.3561 c -1.52246,0.81632 -8.72535,0.87481 -10.74905,0 z" id="rect4504" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccc"@@ -2266,12 +2266,12 @@ sodipodi:rx="8.3287668" sodipodi:ry="1.3013699" d="m 32.79452,354.42465 a 8.3287668,1.3013699 0 1 1 -16.657533,0 8.3287668,1.3013699 0 1 1 16.657533,0 z"- transform="matrix(0.64346484,0,0,0.68138832,37.96993,154.73437)"+ transform="matrix(0.64346484,0,0,0.68138832,37.96993,178.73437)" inkscape:export-filename="/home/johan/birdfont/icons/fill_open_path.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" /> <path- transform="translate(76.66206,384.17435)"+ transform="translate(76.66206,408.17435)" sodipodi:type="arc" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" id="path4997-6"@@ -2286,7 +2286,7 @@ <g style="font-size:8.88676739px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#858585;fill-opacity:1;stroke:none;font-family:KacstDigital;-inkscape-font-specification:KacstDigital Medium" id="text4546"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 93.35994,352.94784 0.880866,0 0,3.93569 c -2e-6,0.69429 0.125836,1.19474 0.377514,1.50138 0.251674,0.30375 0.659562,0.45562 1.223666,0.45562 0.561205,0 0.967647,-0.15187 1.219327,-0.45562 0.251672,-0.30664 0.37751,-0.80709 0.377514,-1.50138 l 0,-3.93569 0.880866,0 0,4.04418 c -5e-6,0.8447 -0.209735,1.48257 -0.62919,1.9136 -0.416572,0.43103 -1.032743,0.64655 -1.848517,0.64655 -0.818672,0 -1.437737,-0.21552 -1.857195,-0.64655 -0.416568,-0.43103 -0.624852,-1.0689 -0.624851,-1.9136 l 0,-4.04418" id="path3766"@@ -2295,7 +2295,7 @@ <g style="font-size:10px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;font-family:KacstDigital;-inkscape-font-specification:KacstDigital Medium" id="text4599"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 15.286632,382.78189 -1.337891,3.62793 2.680664,0 -1.342773,-3.62793 m -0.556641,-0.97168 1.118164,0 2.77832,7.29004 -1.02539,0 -0.664063,-1.87012 -3.286133,0 -0.664062,1.87012 -1.040039,0 2.783203,-7.29004" id="path3769"@@ -2308,7 +2308,7 @@ <g style="font-size:10px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#515151;font-family:KacstDigital;-inkscape-font-specification:KacstDigital Medium" id="text3532"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 50.341908,381.81021 6.166992,0 0,0.83008 -2.587891,0 0,6.45996 -0.991211,0 0,-6.45996 -2.58789,0 0,-0.83008" id="path3774"@@ -2320,7 +2320,7 @@ width="11.70859" height="11.229433" x="126.64785"- y="367.47968"+ y="391.47968" inkscape:export-filename="/home/johan/birdfont/icons/insert_background.png" inkscape:export-xdpi="319.88824" inkscape:export-ydpi="319.88824" />@@ -2328,7 +2328,7 @@ inkscape:transform-center-y="2.5075108" style="font-size:10px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#858585;fill-opacity:1;stroke:none;font-family:KacstDigital;-inkscape-font-specification:KacstDigital Medium" id="text4324"- transform="translate(0,48)">+ transform="translate(0,72)"> <path d="m 130.90663,325.30753 0,2.67089 1.58203,0 c 0.5306,0 0.92285,-0.10904 1.17676,-0.32714 0.25716,-0.22136 0.38574,-0.55827 0.38574,-1.01075 0,-0.45572 -0.12858,-0.79101 -0.38574,-1.00586 -0.25391,-0.21809 -0.64616,-0.32714 -1.17676,-0.32714 l -1.58203,0 m 0,-2.99805 0,2.19726 1.45996,0 c 0.48177,1e-5 0.83984,-0.0895 1.07422,-0.26855 0.23763,-0.18229 0.35644,-0.45898 0.35645,-0.83008 -1e-5,-0.36783 -0.11882,-0.6429 -0.35645,-0.82519 -0.23438,-0.18229 -0.59245,-0.27343 -1.07422,-0.27344 l -1.45996,0 m -0.98633,-0.81055 2.51953,0 c 0.75195,1e-5 1.33138,0.15626 1.73829,0.46875 0.40689,0.31251 0.61034,0.75684 0.61035,1.33301 -1e-5,0.44597 -0.10418,0.80079 -0.3125,1.06445 -0.20834,0.26368 -0.51433,0.42807 -0.91797,0.49317 0.48502,0.10417 0.861,0.32227 1.12793,0.65429 0.27017,0.32878 0.40527,0.74057 0.40527,1.23536 0,0.65104 -0.22136,1.15397 -0.66406,1.50878 -0.44271,0.35482 -1.0726,0.53223 -1.88965,0.53223 l -2.61719,0 0,-7.29004" id="path3763"@@ -2339,7 +2339,7 @@ inkscape:export-filename="/home/johan/birdfont/icons/update_webview.png" inkscape:export-xdpi="319" inkscape:export-ydpi="319"- transform="translate(0,48)">+ transform="translate(0,72)"> <rect inkscape:export-ydpi="319" inkscape:export-xdpi="319"@@ -2366,7 +2366,7 @@ <g id="g4154" style="stroke:#858585;stroke-opacity:1"- transform="translate(0.19863014,50.383562)"+ transform="translate(0.19863014,74.383562)" inkscape:export-filename="/home/johan/birdfont/icons/export_fonts.png" inkscape:export-xdpi="319" inkscape:export-ydpi="319">@@ -2399,7 +2399,7 @@ inkscape:export-filename="/home/johan/birdfont/icons/generate_html_document.png" inkscape:export-xdpi="319" inkscape:export-ydpi="319"- transform="translate(0,48)">+ transform="translate(0,72)"> <path sodipodi:nodetypes="cccccc" inkscape:connector-curvature="0"@@ -2855,7 +2855,7 @@ sodipodi:nodetypes="ccccccccccc" inkscape:connector-curvature="0" id="path3425-1"- d="m 170.41296,115.08651 -0.002,-3.45224 2.59259,-0.002 -4.90418,-5.02687 -5.08475,5.09502 2.34479,-0.002 -0.0364,3.39338 -2.32656,0.0372 5.03879,5.03076 4.83716,-5.06791 z"+ d="m 57.41296,136.58651 -0.002,-3.45224 2.59259,-0.002 -4.90418,-5.02687 -5.08475,5.09502 2.34479,-0.002 -0.0364,3.39338 -2.32656,0.0372 5.03879,5.03076 4.83716,-5.06791 z" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:0.75871521;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> <path inkscape:export-ydpi="319.88824"@@ -2864,7 +2864,34 @@ sodipodi:nodetypes="ccccccccccc" inkscape:connector-curvature="0" id="path3425-1-4"- d="m 134.06548,110.09905 -3.7174,0.002 -0.002,-2.59259 -4.89429,4.90418 5.09502,5.08475 -0.002,-2.34479 3.39338,0.0364 0.0372,2.32656 5.03076,-5.03879 -4.84694,-4.83716 z"+ d="m 20.56548,133.59905 -3.7174,0.002 -0.002,-2.59259 -4.89429,4.90418 5.09502,5.08475 -0.002,-2.34479 3.39338,0.0364 0.0372,2.32656 5.03076,-5.03879 -4.84694,-4.83716 z" style="fill:#e6e6e6;fill-opacity:1;stroke:#858585;stroke-width:0.75871521;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />+ <g+ id="g3445"+ transform="translate(-67.5,0.50000003)"+ inkscape:export-filename="/home/johan/birdfont/icons/skew.png"+ inkscape:export-xdpi="319"+ inkscape:export-ydpi="319">+ <rect+ inkscape:export-ydpi="319"+ inkscape:export-xdpi="319"+ inkscape:export-filename="/home/johan/birdfont/icons/x_coordinate.png"+ style="color:#000000;fill:none;stroke:none;stroke-width:10;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"+ id="rect4217-3"+ width="13.258252"+ height="13.660016"+ x="192.37086"+ y="106.16999" />+ <g+ transform="matrix(0.91235343,0,-0.25480207,0.91235343,50.739085,-9.8465226)"+ id="text3434"+ style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#929292;fill-opacity:1;stroke:none;font-family:BetecknaBirdfont;-inkscape-font-specification:BetecknaBirdfont">+ <path+ style="fill:#929292;fill-opacity:1"+ inkscape:connector-curvature="0"+ id="path3439"+ d="m 199.85352,130.30469 c -0.85938,1e-5 -1.54298,0.32032 -2.05079,0.96093 -0.5039,0.64064 -0.75586,1.51368 -0.75586,2.61915 0,1.10156 0.25196,1.97265 0.75586,2.61328 0.50781,0.64062 1.19141,0.96094 2.05079,0.96093 0.85937,1e-5 1.53905,-0.32031 2.03906,-0.96093 0.5039,-0.64063 0.75585,-1.51172 0.75586,-2.61328 -1e-5,-1.10547 -0.25196,-1.97851 -0.75586,-2.61915 -0.50001,-0.64061 -1.17969,-0.96092 -2.03906,-0.96093 m 0,-0.96094 c 1.22655,1e-5 2.20702,0.41212 2.9414,1.23633 0.73437,0.82032 1.10156,1.92188 1.10156,3.30469 0,1.3789 -0.36719,2.48047 -1.10156,3.30468 -0.73438,0.82032 -1.71485,1.23047 -2.9414,1.23047 -1.23048,0 -2.21485,-0.41015 -2.95313,-1.23047 -0.73438,-0.82031 -1.10156,-1.92187 -1.10156,-3.30468 0,-1.38281 0.36718,-2.48437 1.10156,-3.30469 0.73828,-0.82421 1.72265,-1.23632 2.95313,-1.23633" />+ </g>+ </g> </g> </svg>new file mode 100644Binary files /dev/null and b/icons/skew.png differ@@ -65,6 +65,7 @@ public class DrawingTools : ToolCollection { SpinButton rotation; SpinButton width; SpinButton height;+ SpinButton skew; Tool tie_handles; Tool reflect_handle;@@ -331,7 +332,28 @@ public class DrawingTools : ToolCollection { draw_tool_modifiers.add_tool (rotation); - // size+ // skew+ skew = new SpinButton ("skew", t_("Skew"));+ skew.set_big_number (true);+ skew.set_int_value ("0.000");+ skew.set_int_step (1);+ skew.set_min (-100);+ skew.set_max (100);+ skew.show_icon (true);+ skew.set_persistent (false);+ skew.new_value_action.connect ((self) => {+ resize_tool.skew (skew.get_value ());+ GlyphCanvas.redraw ();+ });+ + move_tool.objects_deselected.connect (() => {+ skew.set_value_round (0, true, false);+ skew.hide_value ();+ });+ + draw_tool_modifiers.add_tool (skew);++ // width width = new SpinButton ("width", t_("Width")); width.set_big_number (true); width.set_int_value ("0.0000");@@ -356,7 +378,7 @@ public class DrawingTools : ToolCollection { }); draw_tool_modifiers.add_tool (width); - // size+ // height height = new SpinButton ("height", t_("Height")); height.set_big_number (true); height.set_int_value ("0.0000");@@ -398,7 +420,7 @@ public class DrawingTools : ToolCollection { width.set_value_round (MoveTool.selection_box_width, true, false); height.set_value_round (MoveTool.selection_box_height, true, false); });- + // edit stroke width object_stroke = new SpinButton ("object_stroke", t_("Stroke width")); object_stroke.set_int_value ("2.000");@@ -1132,6 +1154,7 @@ public class DrawingTools : ToolCollection { rotation.set_tool_visibility (false); width.set_tool_visibility (false); height.set_tool_visibility (false);+ skew.set_tool_visibility (false); tie_handles.set_tool_visibility (false); reflect_handle.set_tool_visibility (false);@@ -1160,6 +1183,7 @@ public class DrawingTools : ToolCollection { rotation.set_tool_visibility (true); width.set_tool_visibility (true); height.set_tool_visibility (true);+ skew.set_tool_visibility (true); } void update_drawing_and_background_tools (Tool current_tool) {@@ -89,6 +89,7 @@ public class Path { public static bool fill_open_path = false; public double rotation = 0;+ public double skew = 0; public Path () { string width;@@ -349,6 +349,28 @@ public class ResizeTool : Tool { double handle_y = Math.fabs (Glyph.reverse_path_coordinate_y (p.ymax)); return fabs (handle_x - x + 10) < 20 * MainWindow.units && fabs (handle_y - y + 10) < 20 * MainWindow.units; }+ + public void skew (double percent) {+ Glyph glyph = MainWindow.get_current_glyph ();+ double dx, nx, x, y, w, h;+ double s = -percent / 100.0;+ + glyph.selection_boundaries (out x, out y, out w, out h);+ + foreach (Path path in glyph.active_paths) {+ SvgParser.apply_matrix (path, 1, 0, s - path.skew, 1, 0, 0);+ path.skew = s;+ path.update_region_boundaries ();+ }+ + glyph.selection_boundaries (out nx, out y, out w, out h);++ dx = -(nx - x);+ + foreach (Path p in glyph.active_paths) {+ p.move (dx, 0);+ }+ } } }@@ -218,7 +218,7 @@ public class SvgParser { /** @param path a path in the cartesian coordinate system * The other parameters are in the SVG coordinate system. */- public void apply_matrix (Path path, double a, double b, double c, + public static void apply_matrix (Path path, double a, double b, double c, double d, double e, double f){ double dx, dy;@@ -243,7 +243,7 @@ public class SvgParser { } } - public void apply_matrix_on_handle (EditPointHandle h, + public static void apply_matrix_on_handle (EditPointHandle h, double a, double b, double c, double d, double e, double f){