How do I get the CSS fonts to work with this Grails PDF rendering plug-in?
问题 I am using a Grails rendering plugin to generate PDF. I want to include CSS with my PDF to render it nicely. I found an example on the rendering plugin website I put the CSS below in print media so that it works for PDF, but this does not work for me. I also do not know how to change the font from Arial to another font. Can someone explain this to me? The plugin uses Arial font with this CSS: @font-face { src: url(path/to/arial.ttf); -fs-pdf-font-embed: embed; -fs-pdf-font-encoding: cp1250; }