diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2011-05-20 20:06:41 +0000 |
|---|---|---|
| committer | Felipe C. da S. Sanches <juca@members.fsf.org> | 2011-05-20 20:06:41 +0000 |
| commit | d0d22ef1d26069adc5dcf4e2ce9e25d0d4331958 (patch) | |
| tree | 43250244d5ee90a18359ae6ad0db5b08d5f4c987 | |
| parent | Reinstating version bump. (diff) | |
| download | inkscape-d0d22ef1d26069adc5dcf4e2ce9e25d0d4331958.tar.gz inkscape-d0d22ef1d26069adc5dcf4e2ce9e25d0d4331958.zip | |
Remove flipping of y-axis from methods that get curves from selection in the svg fonts dialog. This flipping of y-axis seems to be a fontforge bug.
(bzr r10216)
| -rw-r--r-- | src/ui/dialog/svg-fonts-dialog.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index 667d01de7..6bcd5d898 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -500,12 +500,6 @@ void SvgFontsDialog::set_glyph_description_from_selected_path(){ Geom::PathVector pathv = sp_svg_read_pathv(node->attribute("d")); - //This matrix flips the glyph vertically - Geom::Affine m(Geom::Coord(1),Geom::Coord(0),Geom::Coord(0),Geom::Coord(-1),Geom::Coord(0),Geom::Coord(0)); - pathv*=m; - //then we offset it - pathv+=Geom::Point(Geom::Coord(0),Geom::Coord(get_selected_spfont()->horiz_adv_x)); - SPGlyph* glyph = get_selected_glyph(); if (!glyph){ char *msg = _("No glyph selected in the SVGFonts dialog."); @@ -545,13 +539,6 @@ void SvgFontsDialog::missing_glyph_description_from_selected_path(){ Geom::PathVector pathv = sp_svg_read_pathv(node->attribute("d")); - //This matrix flips the glyph vertically - Geom::Affine m(Geom::Coord(1),Geom::Coord(0),Geom::Coord(0),Geom::Coord(-1),Geom::Coord(0),Geom::Coord(0)); - pathv*=m; - //then we offset it -// pathv+=Geom::Point(Geom::Coord(0),Geom::Coord(get_selected_spfont()->horiz_adv_x)); - pathv+=Geom::Point(Geom::Coord(0),Geom::Coord(1000));//TODO: use here the units-per-em attribute? - SPObject* obj; for (obj = get_selected_spfont()->children; obj; obj=obj->next){ if (SP_IS_MISSING_GLYPH(obj)){ |
