Forum How do I...?

HelveticaNeue OpenType TrueType font support

nico
Hi,

I would like to use the font HelveticaNeue but Prince does not render it. I guess this is because its type is OpenType TrueType. So I have two questions :

  1. Do you plan to support that kind of font in the near future ?
  2. Is it possible that Prince displays a warning (with --verbose) when the first choice for the font-family selector cannot be used ?

I am running Prince 8.1 rev 4 on OSX 10.8.2.

Regards,

Nicolas
mikeday
It should work fine. Can you run Prince with the --debug flag on this document, and paste the debug output here?
<html>
<body style="font-family: Helvetica Neue">
<p style="font-weight: 100">Helvetica 100</p>
<p style="font-weight: 200">Helvetica 200</p>
<p style="font-weight: 300">Helvetica 300</p>
<p style="font-weight: 400">Helvetica 400</p>
<p style="font-weight: 500">Helvetica 500</p>
<p style="font-weight: 600">Helvetica 600</p>
<p style="font-weight: 700">Helvetica 700</p>
<p style="font-weight: 800">Helvetica 800</p>
<p style="font-weight: 900">Helvetica 900</p>
</body>
</html>
nico
Thank you for your answer Mike,

I tried your example and it works fine. My mistake was that I used the Postscript name (HelveticaNeue) instead of the family name ("Helvetica Neue").

Still is it possible that you display a warning (with --verbose) when the first choice for the font-family selector cannot be used ?
mikeday
This might produce many unnecessary warnings in some situations, so it would need to be an optional setting. We will think about it. :D
nico
Maybe a verbose level would do the trick

--verbose=0 (not very verbose)
--verbose=1 (verbose)
--verbose=2 (very verbose)
mikeday
Actually another possibility would be to add a no-fallback font family that issues a warning, this would be more flexible and possibly more convenient to implement. For example:
font-family: Helvetica, no-fallback

This would also allow specifying multiple fonts for different scripts:
font-family: Helvetica, JapaneseFont, no-fallback

There may be a better name for this, but it seems like a useful concept.
nico
Very good idea. I suggest that you include the word Prince in the name. That makes it easy to remember that it is Prince specific.

font-family: Helvetica, prince-no-fallback
mikeday
Yes, good point.
mikeday
We have added support for this idea in Prince 10! :D