X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Ffont2swf.cc;h=3b2d2e4fe8b18747d60d0bde62c2d1b571bfc0ca;hb=893e0c1a38524ceac66557aee146dc1a05c1ff01;hp=e44c0e5b3a6e79bbb2bc619736f70996e2460680;hpb=89c7f50b2df8c41d639d75f601e015499dacc10e;p=swftools.git diff --git a/pdf2swf/font2swf.cc b/pdf2swf/font2swf.cc index e44c0e5..3b2d2e4 100644 --- a/pdf2swf/font2swf.cc +++ b/pdf2swf/font2swf.cc @@ -6,10 +6,19 @@ Copyright (c) 2001 Matthias Kramm - This file is distributed under the GPL, see file COPYING for details + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -*/ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include @@ -231,7 +240,7 @@ SWFFONT * t1font2swffont(int i) SRECT bbox; shape2 = swf_ShapeToShape2(shape); if(!shape2) { fprintf(stderr, "Shape parse error\n");exit(1);} - bbox = swf_GetShapeBoundingBox(shape2->lines); + bbox = swf_GetShapeBoundingBox(shape2); swf_Shape2Free(shape2); wfont->layout->bounds[num] = bbox; //wfont->glyph[num].advance = (int)(width/6.4); // 128/20