mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
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:
parent
db5f6980f1
commit
8b08a4bb47
@ -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);
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user