New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use fonts #1
Comments
It should support @fontface, but not sure if it supports all formats. This example works for me: Haven't tested it, but you should be able to use your own fonts, if you pass in the correct files (try http://www.fontsquirrel.com/ to generate them for example). And make sure you reference the files correctly (probably full path) |
Load font using load_font.php then copy "dompdf_font_family_cache.php" within the 'vendor/dompdf/lib/' to 'storage/fonts'. Works fine. |
Dear Barry,
Is it possible to use fonts in this module?
If I load a view (PDF/invoice), it does not recognise my fonts, even not inline.
$pdf = PDF::loadView('PDF/invoice', array('user' => $user));
Edit:
Solved.. Just in the head, worked
body {
font-family: 'Helvetica'
}
The text was updated successfully, but these errors were encountered: