0

I have a VF page that is rendered as pdf, on that page I'm using Helvetica as the font family. Unfortunately, in the pdf, it's not working, and rendering all the fonts renders as Times font.

Helvetica is mentioned as a supported font family in pdf rendering link but one line is also written

Text styled with any value besides those listed above receives the default font style, Times. This means that, ironically, while Helvetica's synonyms render as Helvetica, using "Helvetica" for the font-family style renders as Times. We recommend using "sans-serif".

I have a very poor understanding of fonts and it's families. So if anyone can explain to me what that means and what I can do to render fonts as Helvetica, would be really helpful.

Thanks

0

You need to use sans-serif, as in:

<style>
  body { font-family: sans-serif; }
</style>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.