Forum Bugs

different outputs on windows and mac ?

pablonolla
Hello!

I'm totally new to Prince, and starting to use it. Great tool!.

I'm surprised with the following:
Converting on a win machine uses the fonts, converting on mac (on command line") gives other result, other font.
All running the same .xhtml file, with the same css and the same "fonts" folder.

Any idea on why this could happen?

Thank you!!
mikeday
MacOS X has different default fonts installed, especially for non-Latin scripts. However, if you choose the fonts yourself using @font-face rules, then it should be the same on both systems. Which different fonts is it using?
pablonolla
Thank you mikeday,

on the css we have:

@font-face {
font-family: "Times";
font-style: normal;
font-weight: normal;
src:url("../fonts/times.ttf");
}
body {
font-size: 11pt;
line-height:120%;
font-family: Times;
hyphens: auto;
}


the font folder has this files:
times.ttf
timesbd.ttf
timesbi.ttf
timesi.ttf


on MacOS X I only type "prince filename.xhtml" and it creates the .pdf in the same folder as the original file.

a snapshot of the windows and mac pdf's are attached.

If there is any more information that that you might need to figure out what could be the problem, please let me know.

thank you very much!

p
  1. 6_mac.tiff253.9 kB
  2. 6_windows.tiff265.6 kB
mikeday
Do you have four @font-face rules, for normal, bold, italic, and bold-italic?
pablonolla
no... only that one...
pablonolla
i'l try to add those other rules, of course. back in 5 min.
pablonolla
That was the thing!!!!!
As you can see I'm not an CSS expert :))
Thank you soooooo much for your help!!!
incredible...
pablonolla
well...
this is embarrasing, but it seems it's still not working the same...

I have this on the css:
@font-face {
font-family: "Times";
font-style: normal;
font-weight: normal;
src:url("../fonts/times.ttf");
}

@font-face {
font-family: "Times";
font-style: italic;
font-weight: normal;
src:url("../fonts/timesi.ttf");
}
@font-face {
font-family: "Times";
font-style: normal;
font-weight: bold;
src:url("../fonts/timesbd.ttf");
}
@font-face {
font-family: "Times";
font-style: italic;
font-weight: bold;
src:url("../fonts/timesbi.ttf");
}


mikeday
Which fonts are being used in the two PDF files? eg. if you check in Acrobat under Properties > Fonts, or if you run Prince with the --verbose option it will list the fonts at the end.
pablonolla
Sorry.
Obviously I have to study the issue before asking any more.
I'll get back as soon as i have more clear ideas.
Thank you!