TCPDF Fonts

Administration tool ::: tool_tcpdffonts
Maintained by Rogier van Dongen, Sebsoft Plugins
TCPDF Fonts Manager for Moodle
Latest release:
413 sites
121 downloads
14 fans
Current versions available: 1

With this plugin it becomes easy to manage your TCPDF fonts.

This plugin was inspired by the lack of a FARSI font in core Moodle. Core Moodle has removed several fonts from the default TCPDF fonts to decrease the installation size.

The issue of lacking fonts was already mentioned back in 2009, but still hasn't made it to core as of today; almost 12 years later. See MDL-18663 for more details.

The TCPDF Font Manager overcomes this problem by automating initialisation of a custom fonts folder, which is in fact defined as a possible override by core Moodle. However, for this type of customisation, you'd have to have access to the filesystem where moodle data resides and create the custom folder. Only then would you be able to upload a bigger collection of fonts than core Moodle provides by default.

The TCPDF Font manager build a graphical shell around this customisation and adds functionality to add fonts from a True Type Font file (TTF) or Open Type Font file (OTF). Second, it's possible to upload a complete archive file containing pre-build TCPDF Fonts. These archives consist of 1-3 files per font variant (.php file, optionally .z and .ctg.z files). A rudimentary check is done on the PHP font definition file because it imposes injection risks.

Important note:

Even though a full archive of pre-built TCPDF Fonts can be uploaded, it is entirely up to the uploading user to verify the archive before uploading it to your Moodle installation. This is because TCPDF Font definition files are not only in PHP, but included when the font is used in PDF. If this included file would contain any malicous code, the consequences may be substantial. The author(s) of this plugin can not take any responsibility for a loss or corruption of your data or even any published data as a result of using this plugin.

Potential privacy issues

Malicious code injection IF making use of the "upload zipped" functionality. Due to the fact TCPDF font definition files are in fact PHP files that are included.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Rogier van Dongen (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Ցուցադրել մեկնաբանությունները
  • Plugins bot
    երք, 14 սեպ 2021, 10:30 PM
    Approval issue created: CONTRIB-8693
  • Luiggi Sansonetti
    երկ, 8 նոյ 2021, 11:26 PM
    Hi
    Please see the comments on CONTRIB-8693- the review process on your plugin are blocked until this is resolved.
    And use the tracker issue linked above for communication around the review process.
    Cheers.
  • michael wilson-craig
    հնգ, 10 օգս 2023, 9:57 AM
    Hello Will this be updated to Moodle 4.2?
    I tried this in 4.2 and got the follow error Exception - syntax error, unexpected token "<".
    Due to no install instructions i just unzip the folder and pasted TCPDFfonts folder into moodle's mod folder
  • Rogier van Dongen
    չրք, 20 սեպ 2023, 8:13 PM
    Hallo Michael,
    I fear your knowledge of Moodle is substantially lacking when it comes to plugin installation.
    It's an admin tool, it shouldn't even be pasted in to Moodle's "mod" folder but in "admin/tool".
Please login to post comments