bug 234182 : use multiple type 1 fonts in place of a type 9 font for PS freetype printing. Ken's review comments were not addressed in the previous check-in by mistake

This commit is contained in:
jshin%mailaps.org 2005-03-04 10:08:29 +00:00
parent db5f6980f1
commit 8b08a4bb47
2 changed files with 3 additions and 3 deletions

View File

@ -2459,8 +2459,8 @@ float greyBrightness;
void nsPostScriptObj::setfont(const nsCString& aFontName, PRUint32 aHeight,
PRInt32 aSubFont)
{
fprintf(mScriptFP, "%d /%s%s Msf\n", aHeight, aFontName.get(),
aSubFont >= 0 ? nsPrintfCString(".Set%d", aSubFont).get() : "");
fprintf(mScriptFP, "%d /%s.Set%d Msf\n", aHeight, aFontName.get(),
aSubFont);
}
/** ---------------------------------------------------

View File

@ -696,7 +696,7 @@ outputType1SubFont(nsIFreeType2 *aFt2, FT_Face aFace,
fputc('\n', aFile);
// output mandatory 512 0's
const static char *sixtyFourZeros =
const static char sixtyFourZeros[] =
"0000000000000000000000000000000000000000000000000000000000000000\n";
for (i = 0; i < 8; i++)
fprintf(aFile, sixtyFourZeros);