TCPDF Fonts

Admin tools ::: tool_tcpdffonts
Maintained by Rogier van Dongen, Sebsoft Plugins
TCPDF Fonts Manager for Moodle
Latest release:
81 sites
84 downloads
4 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

Show comments
  • Tue, Sep 14, 2021, 10:30 PM
    Approval issue created: CONTRIB-8693
  • Mon, Nov 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.
Please login to post comments