ChickenPower
Forum Replies Created
-
Hello,
I have quite similar problem with Czech crowns (Kč), but as i found out, PDF files basically support only Times, Helvetica and Courier fonts (plus some symbols). Other fonts must be somehow implemented.
As I read all tips including @font-face font implementation, nothing works, except these three fonts.
Maybe you will be more lucky with this @font-face, but it didn’t work for me even after hours of trying. Maybe I was doing some rookie mistake.
Or as I think, some character coding could help us, but I have no idea where to set it correctly.I also tried this:
In case if you want to add more fonts to Booster’s PDF invoicing module, you can do so with
wcj_pdf_invoicing_fontsfilter. What you need to do is:1. Prepare TCPDF font files (for example with this tool).
2. Upload your custom fonts files to …/wp-content/uploads/woocommerce_uploads/wcj_uploads/tcpdf_fonts folder on your server.
3. Go to your (child) theme’s functions.php file and add something like this:
add_filter( ‘wcj_pdf_invoicing_fonts’, ‘add_custom_fonts_to_booster_pdf_invoices’ );
function add_custom_fonts_to_booster_pdf_invoices( $fonts ) {
$fonts[‘font_id’] = ‘Label’;
$fonts[‘another_font_id’] = ‘Another label’;
return $fonts;
}
After that new fonts should be available in “WooCommerce > Settings > Booster > PDF Invoicing & Packing Slips > Styling”. You can setLabelto any value, andfont_idis filename of your font without extension.But it crashes my site 🙁
- This reply was modified 5 years, 9 months ago by ChickenPower.
Forum: Installing WordPress
In reply to: InstallationIf your domain is new, it may take about 48 hours to set DNS servers all over the world. I recently discovered this, when I could acces my site via phone, but computer didn’t see anything. When i tried it with my friends, they experienced the same, but two days later it was all OK.
EDIT: Sorry, didn’t notice this post was 5 days old 🙂OK thanks! Didn’t know about this Hobbyist so I will take a look 🙂
Forum: Plugins
In reply to: [Iptanus File Upload] Allowed File Extensions not workingI just tried also at least ten times and I found a solution!!! 😀
There must not be spaces between extensions, just like *.jpg,*.pdf,*.docHello, I am a total amateur in programing, but I would appreciate a checkbox in my Profile Builder.
Something like the user will check that he is 15 years or older and he will register as a subscriber15+ for example…
I already created new role for users and hidden some content for younger users, but didn’t realize they can’t assign to those roles by themselves 🙂Could someone please tell me what to add where or give an advice how to create this chechbox function?
Thanks very much!