removed extra newlines from wxLogDebugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cb71578cae
commit
48c31b2853
@ -2052,8 +2052,8 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
|
||||
if (afmFile==NULL)
|
||||
{
|
||||
wxLogDebug( wxT("GetTextExtent: can't open AFM file '%hs'\n"), afmName.c_str() );
|
||||
wxLogDebug( wxT(" using approximate values\n"));
|
||||
wxLogDebug( wxT("GetTextExtent: can't open AFM file '%hs'"), afmName.c_str() );
|
||||
wxLogDebug( wxT(" using approximate values"));
|
||||
for (int i=0; i<256; i++) lastWidths[i] = 500; /* an approximate value */
|
||||
lastDescender = -150; /* dito. */
|
||||
}
|
||||
@ -2075,7 +2075,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
if ((sscanf(line,"%s%d",descString,&lastDescender)!=2) ||
|
||||
(strcmp(descString,"Descender")!=0))
|
||||
{
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad descender)\n"), afmName.c_str(),line );
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad descender)"), afmName.c_str(),line );
|
||||
}
|
||||
}
|
||||
/* JC 1.) check for UnderlinePosition */
|
||||
@ -2084,7 +2084,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
if ((sscanf(line,"%s%lf",upString,&UnderlinePosition)!=2) ||
|
||||
(strcmp(upString,"UnderlinePosition")!=0))
|
||||
{
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad UnderlinePosition)\n"), afmName.c_str(), line );
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad UnderlinePosition)"), afmName.c_str(), line );
|
||||
}
|
||||
}
|
||||
/* JC 2.) check for UnderlineThickness */
|
||||
@ -2093,7 +2093,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
if ((sscanf(line,"%s%lf",utString,&UnderlineThickness)!=2) ||
|
||||
(strcmp(utString,"UnderlineThickness")!=0))
|
||||
{
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad UnderlineThickness)\n"), afmName.c_str(), line );
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad UnderlineThickness)"), afmName.c_str(), line );
|
||||
}
|
||||
}
|
||||
/* JC 3.) check for EncodingScheme */
|
||||
@ -2102,11 +2102,11 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
if ((sscanf(line,"%s%s",utString,encString)!=2) ||
|
||||
(strcmp(utString,"EncodingScheme")!=0))
|
||||
{
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad EncodingScheme)\n"), afmName.c_str(), line );
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (bad EncodingScheme)"), afmName.c_str(), line );
|
||||
}
|
||||
else if (strncmp(encString, "AdobeStandardEncoding", 21))
|
||||
{
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (unsupported EncodingScheme %hs)\n"),
|
||||
wxLogDebug( wxT("AFM-file '%hs': line '%hs' has error (unsupported EncodingScheme %hs)"),
|
||||
afmName.c_str(),line, encString);
|
||||
}
|
||||
}
|
||||
@ -2115,11 +2115,11 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
{
|
||||
if (sscanf(line,"%s%d%s%s%d",cString,&ascii,semiString,WXString,&cWidth)!=5)
|
||||
{
|
||||
wxLogDebug(wxT("AFM-file '%hs': line '%hs' has an error (bad character width)\n"),afmName.c_str(),line);
|
||||
wxLogDebug(wxT("AFM-file '%hs': line '%hs' has an error (bad character width)"),afmName.c_str(),line);
|
||||
}
|
||||
if(strcmp(cString,"C")!=0 || strcmp(semiString,";")!=0 || strcmp(WXString,"WX")!=0)
|
||||
{
|
||||
wxLogDebug(wxT("AFM-file '%hs': line '%hs' has a format error\n"),afmName.c_str(),line);
|
||||
wxLogDebug(wxT("AFM-file '%hs': line '%hs' has a format error"),afmName.c_str(),line);
|
||||
}
|
||||
/* printf(" char '%c'=%d has width '%d'\n",ascii,ascii,cWidth); */
|
||||
if (ascii>=0 && ascii<256)
|
||||
@ -2129,7 +2129,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
else
|
||||
{
|
||||
/* MATTHEW: this happens a lot; don't print an error */
|
||||
/* wxLogDebug("AFM-file '%s': ASCII value %d out of range\n",afmName.c_str(),ascii); */
|
||||
/* wxLogDebug("AFM-file '%s': ASCII value %d out of range",afmName.c_str(),ascii); */
|
||||
}
|
||||
}
|
||||
/* C.) ignore other entries. */
|
||||
@ -2171,7 +2171,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
|
||||
{
|
||||
if(lastWidths[*p]== INT_MIN)
|
||||
{
|
||||
wxLogDebug(wxT("GetTextExtent: undefined width for character '%hc' (%d)\n"), *p,*p);
|
||||
wxLogDebug(wxT("GetTextExtent: undefined width for character '%hc' (%d)"), *p,*p);
|
||||
sum += lastWidths[' ']; /* assume space */
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user