Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
How i can customize dw2pdf (user fonts)
Bekkerel #1
Member since Dec 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: How i can customize dw2pdf (user fonts)
I use dokuwiki with a template. Custom fonts added to wiki: product icons.

Problem: how can I customize the output of PDF with icons? I have plugins dw2pdf + bookcreator, however, fonts cannot be connected.

Fonts copied in

sample of my configs in FontVariables.php:

namespace Mpdf\Config;

class FontVariables

    private $defaults;

    public function __construct()
        $this->defaults = [
            'fontdata' => [
                /* custom two fonts */
                "UDiconfont" => [
                    'R' => "UDiconfont.ttf",
                    'useOTL' => 0xFF,
                    'useKashida' => 75,
                "ud_menu-font" => [
                    'R' => "ud_menu-font.otf",
                    'R' => "ud_menu-font.woff",
                    'useOTL' => 0xFF,
                    'useKashida' => 75,

Please, help, tell me how can I display the font or display it as a picture
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-29, 19:44:55 (UTC +01:00)