*
* 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
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* functions to read GF fonts */
+#include <config.h>
#include <string.h>
#include "common.h"
#include "mdvi.h"
min_m = max_m - min_m;
min_n = max_n - min_n;
} else {
- error(_("GF: invalid opcode %d in character %d\n"),
- op, ch->code);
+ mdvi_error(_("GF: invalid opcode %d in character %d\n"),
+ op, ch->code);
return -1;
}
DEBUG((DBG_BITMAPS, "(gf) no_op\n"));
break;
default:
- error(_("(gf) Character %d: invalid opcode %d\n"),
- ch->code, op);
+ mdvi_error(_("(gf) Character %d: invalid opcode %d\n"),
+ ch->code, op);
goto error;
}
/* chech that we're still inside the bitmap */
return 0;
toobig:
- error(_("(gf) character %d has an incorrect bounding box\n"),
- ch->code);
+ mdvi_error(_("(gf) character %d has an incorrect bounding box\n"),
+ ch->code);
error:
bitmap_destroy(map);
ch->glyph.data = NULL;
/* the checksum */
word = fuget4(p);
if(word && font->checksum && font->checksum != word) {
- warning(_("%s: bad checksum (expected %u, found %u)\n"),
- font->fontname, font->checksum, word);
+ mdvi_warning(_("%s: bad checksum (expected %u, found %u)\n"),
+ font->fontname, font->checksum, word);
} else if(!font->checksum)
font->checksum = word;
/* skip pixels per point ratio */
/* dy assumed 0 */
break;
default:
- error(_("%s: junk in postamble\n"), font->fontname);
+ mdvi_error(_("%s: junk in postamble\n"), font->fontname);
goto error;
}
ch->code = cc;
return 0;
badgf:
- error(_("%s: File corrupted, or not a GF file\n"), font->fontname);
+ mdvi_error(_("%s: File corrupted, or not a GF file\n"), font->fontname);
error:
if(font->chars) {
mdvi_free(font->chars);