Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
graphics
tgif
tgif-4.2.5-upstream.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tgif-4.2.5-upstream.patch of Package tgif
--- miniline.c.original 2011-06-28 04:04:58.000000000 +0200 +++ miniline.c 2012-01-06 13:12:53.415199180 +0100 @@ -15,7 +15,7 @@ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * @(#)$Header: /mm2/home/cvs/bc-src/tgif/miniline.c,v 1.38 2011/05/18 22:41:20 william Exp $ + * @(#)$Header: /mm2/home/cvs/bc-src/tgif/miniline.c,v 1.40 2011/09/07 04:28:51 cvsps Exp $ */ #define _INCLUDE_FROM_MINILINE_C_ @@ -5661,10 +5661,15 @@ } static -void DumpSetFont(FP, font, font_name, double_byte, style, sz_unit) +void DumpSetFont(FP, font, font_name, double_byte, style, sz_unit, + pn_cancel_double_byte_mod_bytes) FILE *FP; - int font, double_byte, style, sz_unit; + int font, double_byte, style, sz_unit, *pn_cancel_double_byte_mod_bytes; char *font_name; + /* + * The only known condition for setting *cancel_double_byte_mod_bytes to + * TRUE is when Japanese EUC fonts are used. + */ { char buf[MAXSTRING], font_str[MAXSTRING], real_font_str[MAXSTRING]; char *ps_findfont_cmd=gPsCmd[PS_FINDFONT]; @@ -5684,6 +5689,10 @@ strcpy(real_font_str, font_str); MapAliasedPSFontName(real_font_str, sizeof(real_font_str)); + if (pn_cancel_double_byte_mod_bytes != NULL && + strstr(real_font_str, "-EUC-") != NULL) { + *pn_cancel_double_byte_mod_bytes = TRUE; + } #ifdef _PS_USE_EUC_FONT /* do not translate -- program constants */ euc_font = (strstr(font_str, "-EUC-") != NULL); @@ -5755,6 +5764,7 @@ int font=pStrSeg->font, style=pStrSeg->style, sz_unit=pStrSeg->sz_unit; int double_byte=pStrSeg->double_byte, color_index=pStrSeg->color; int double_byte_mod_bytes=pStrSeg->double_byte_mod_bytes; + int cancel_double_byte_mod_bytes=FALSE; int asc=(pStrSeg->read_only ? pStrSeg->orig_asc : pStrSeg->asc); char *font_name=pStrSeg->font_name; @@ -5779,10 +5789,13 @@ } } DumpIndentString(FP, indent); - DumpSetFont(FP, font, font_name, double_byte, style, sz_unit); + DumpSetFont(FP, font, font_name, double_byte, style, sz_unit, + &cancel_double_byte_mod_bytes); DumpIndentString(FP, indent); fprintf(FP, "("); - DumpOneStr(FP, font, double_byte, double_byte_mod_bytes, pStrSeg->dyn_str.s); + DumpOneStr(FP, font, double_byte, + double_byte_mod_bytes && !cancel_double_byte_mod_bytes, + pStrSeg->dyn_str.s); if (do_dump) { int underline_on=pStrSeg->underline_on; int overline_on=pStrSeg->overline_on; --- xprtfltr.c.original 2011-06-28 04:05:00.000000000 +0200 +++ xprtfltr.c 2012-01-06 13:12:02.086806958 +0100 @@ -334,24 +334,24 @@ /* do not translate -- program constants */ static char *gpszColorExportName[MAXDEFWHERETOPRINT] = { "Printer", "EPS", "PS", "XPM", "ASCII", "EPSI", "GIF/ISMAP", "HTML/USEMAP", - "PDF", "TiffEPSI", "PNG", "JPEG", "PPM", "NetList" + "PDF", "TiffEPSI", "PNG", "JPEG", "PPM", "NetList", "SVG" }; static char *gpszBWExportName[MAXDEFWHERETOPRINT] = { "Printer", "EPS", "PS", "XBM", "ASCII", "EPSI", "GIF/ISMAP", "HTML/USEMAP", - "PDF", "TiffEPSI", "PNG", "JPEG", "PBM", "NetList" + "PDF", "TiffEPSI", "PNG", "JPEG", "PBM", "NetList", "SVG" }; static char *gpszColorExportExt[MAXDEFWHERETOPRINT] = { NULL, EPSF_FILE_EXT, PS_FILE_EXT, XPM_FILE_EXT, TEXT_FILE_EXT, EPSF_FILE_EXT, "gif", "html", "pdf", EPSF_FILE_EXT, "png", "jpg", "ppm", - NETLIST_FILE_EXT + NETLIST_FILE_EXT, "svg" }; static char *gpszBWExportExt[MAXDEFWHERETOPRINT] = { NULL, EPSF_FILE_EXT, PS_FILE_EXT, XBM_FILE_EXT, TEXT_FILE_EXT, EPSF_FILE_EXT, "gif", "html", "pdf", EPSF_FILE_EXT, "png", "jpg", "pbm", - NETLIST_FILE_EXT + NETLIST_FILE_EXT, "svg" }; int GetExportIndex(nWhereToPrint, nMode)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor