Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2008-11-04 20:45:44 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2008-11-04 20:45:44 (GMT)
commit6c3b4dd01daf58df96cb41b87c3aac39e5716fa7 (patch)
tree501de59870723aa5d10bf35ae8f1ecd847c830a0 /backend
parentf1eeb4062efa264f8f478775a27cf8157f6dd76c (diff)
More renames of warning to mdvi_warning in follow up to the fix of the bug
2008-11-04 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * backend/dvi/mdvi-lib/t1.c (t1_reset_resolution), (t1_transform_font): * backend/dvi/mdvi-lib/tt.c (tt_really_load_font), (tt_load_font): More renames of warning to mdvi_warning in follow up to the fix of the bug #553369. Fix for the bug #559257 by Tuxce <tuxce.net@gmail.com>. svn path=/trunk/; revision=3253
Diffstat (limited to 'backend')
-rw-r--r--backend/dvi/mdvi-lib/t1.c4
-rw-r--r--backend/dvi/mdvi-lib/tt.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/backend/dvi/mdvi-lib/t1.c b/backend/dvi/mdvi-lib/t1.c
index e7cd4f8..4e7be63 100644
--- a/backend/dvi/mdvi-lib/t1.c
+++ b/backend/dvi/mdvi-lib/t1.c
@@ -184,7 +184,7 @@ static void t1_reset_resolution(int xdpi, int ydpi)
T1_DeleteAllSizes(i);
/* reset device resolutions */
if(T1_SetDeviceResolutions((float)xdpi, (float)ydpi) < 0)
- warning(_("(t1) failed to reset device resolution\n"));
+ mdvi_warning(_("(t1) failed to reset device resolution\n"));
else
DEBUG((DBG_TYPE1,
"(t1) reset successful, new resolution is (%d, %d)\n",
@@ -212,7 +212,7 @@ static void t1_transform_font(T1Info *info)
info->fontname, info->encoding->name));
T1_DeleteAllSizes(info->t1id);
if(T1_ReencodeFont(info->t1id, info->encoding->vector) < 0)
- warning(_("%s: could not encode font\n"), info->fontname);
+ mdvi_warning(_("%s: could not encode font\n"), info->fontname);
}
if(info->mapinfo.slant) {
DEBUG((DBG_TYPE1, "(t1) %s: slanting by %.3f\n",
diff --git a/backend/dvi/mdvi-lib/tt.c b/backend/dvi/mdvi-lib/tt.c
index ab096d3..e2edd29 100644
--- a/backend/dvi/mdvi-lib/tt.c
+++ b/backend/dvi/mdvi-lib/tt.c
@@ -148,7 +148,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
info->fontname));
status = TT_Open_Face(tt_handle, font->filename, &info->face);
if(status) {
- warning(_("(tt) %s: could not load face: %s\n"),
+ mdvi_warning(_("(tt) %s: could not load face: %s\n"),
info->fontname, TT_ErrToString18(status));
return -1;
}
@@ -156,7 +156,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
/* create a new instance of this face */
status = TT_New_Instance(info->face, &info->instance);
if(status) {
- warning(_("(tt) %s: could not create face: %s\n"),
+ mdvi_warning(_("(tt) %s: could not create face: %s\n"),
info->fontname, TT_ErrToString18(status));
TT_Close_Face(info->face);
return -1;
@@ -165,7 +165,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
/* create a glyph */
status = TT_New_Glyph(info->face, &info->glyph);
if(status) {
- warning(_("(tt) %s: could not create glyph: %s\n"),
+ mdvi_warning(_("(tt) %s: could not create glyph: %s\n"),
info->fontname, TT_ErrToString18(status));
goto tt_error;
}
@@ -198,7 +198,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
}
}
if(map_found < 0) {
- warning(_("(tt) %s: no acceptable map found, using #0\n"),
+ mdvi_warning(_("(tt) %s: no acceptable map found, using #0\n"),
info->fontname);
map_found = 0;
}
@@ -237,7 +237,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
status = TT_Load_PS_Names(info->face, &post);
if(status) {
- warning(_("(tt) %s: could not load PS name table\n"),
+ mdvi_warning(_("(tt) %s: could not load PS name table\n"),
info->fontname);
mdvi_release_encoding(info->encoding, 0);
info->encoding = NULL;
@@ -249,7 +249,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
info->fmftype, info->fmfname);
if(info->tfminfo == NULL) {
- warning("(tt) %s: no metrics data, font ignored\n",
+ mdvi_warning("(tt) %s: no metrics data, font ignored\n",
info->fontname);
goto tt_error;
}
@@ -262,7 +262,7 @@ static int tt_really_load_font(DviParams *params, DviFont *font, FTInfo *info)
if(info->encoding)
tt_encode_font(font, info);
else {
- warning(_("%s: no encoding vector found, expect bad output\n"),
+ mdvi_warning(_("%s: no encoding vector found, expect bad output\n"),
info->fontname);
/* this is better than nothing */
for(i = font->loc; i <= font->hic; i++)
@@ -322,7 +322,7 @@ static int tt_load_font(DviParams *params, DviFont *font)
}
if(info->fmfname == NULL)
- warning(_("(tt) %s: no font metric data\n"), font->fontname);
+ mdvi_warning(_("(tt) %s: no font metric data\n"), font->fontname);
listh_append(&ttfonts, LIST(info));
font->private = info;