PHPackages                             tecnickcom/tc-lib-pdf-font - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. tecnickcom/tc-lib-pdf-font

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

tecnickcom/tc-lib-pdf-font
==========================

PHP library containing PDF page formats and definitions

2.6.32(2mo ago)21773.2k—9.6%104LGPL-3.0-or-laterPHPPHP &gt;=8.1CI passing

Since Dec 3Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/tecnickcom/tc-lib-pdf-font)[ Packagist](https://packagist.org/packages/tecnickcom/tc-lib-pdf-font)[ Docs](http://www.tecnick.com)[ Fund](https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ)[ RSS](/packages/tecnickcom-tc-lib-pdf-font/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (103)Used By (4)Security (1)

tc-lib-pdf-font
===============

[](#tc-lib-pdf-font)

*PHP library containing PDF font methods and utilities*

[![Latest Stable Version](https://camo.githubusercontent.com/40e0ded9856bfd90415658a8fb91de6d0e3fc572c42a59246423de3384d3bbfe/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d666f6e742f76657273696f6e)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-font)[![Build](https://github.com/tecnickcom/tc-lib-pdf-font/actions/workflows/check.yml/badge.svg)](https://github.com/tecnickcom/tc-lib-pdf-font/actions/workflows/check.yml/badge.svg)[![Coverage](https://camo.githubusercontent.com/a6e5d16455bf3ed965730df64ecead0764f293c375e22692e5a9439782e41fcd/68747470733a2f2f636f6465636f762e696f2f67682f7465636e69636b636f6d2f74632d6c69622d7064662d666f6e742f67726170682f62616467652e7376673f746f6b656e3d77474e36556e4f41466f)](https://codecov.io/gh/tecnickcom/tc-lib-pdf-font)[![License](https://camo.githubusercontent.com/e05ad699021e56aa4a110e5a0a921cbd93137da4d6819766edab1f32c1d2a64d/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d666f6e742f6c6963656e7365)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-font)[![Downloads](https://camo.githubusercontent.com/680451f05e254877b5268dd32d0d35fffd01c9d9e7b50d28cee3079584bfc6c0/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d666f6e742f646f776e6c6f616473)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-font)

[![Donate via PayPal](https://camo.githubusercontent.com/e5f561f4f549822da3fbfb75d0be9059a60eac15b1ff7af66500ca1dd4dba91b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d3837636565622e737667)](https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ)*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/donate/?hosted_button_id=NZUEC5XS8MFBJ)*

- **category** Library
- **package** \\Com\\Tecnick\\Pdf\\Font
- **author** Nicola Asuni
- **copyright** 2011-2026 Nicola Asuni - Tecnick.com LTD
- **license**  GNU-LGPL v3 (see LICENSE.TXT)
- **link**
- **SRC DOC**

Description
-----------

[](#description)

PHP library containing PDF font methods and utilities.

The initial source code has been derived from [TCPDF](http://www.tcpdf.org).

Getting started
---------------

[](#getting-started)

First, you need to install all development dependencies using [Composer](https://getcomposer.org/):

```
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
```

This project include a Makefile that allows you to test and build the project with simple commands. To see all available options:

```
make help
```

To install all the development dependencies:

```
make deps
```

Running all tests
-----------------

[](#running-all-tests)

Before committing the code, please check if it passes all tests using

```
make qa
```

All artifacts are generated in the target directory.

To generate the default fonts you can use the command:

```
make fonts
```

The files are generated inside the `target/fonts` folder. Please check the `util/convert.php` and `util/bulk_convert.php` to manually convert fonts.

Installation
------------

[](#installation)

Create a composer.json in your projects root-directory:

```
{
    "require": {
        "tecnickcom/tc-lib-pdf-font": "^2.0"
    }
}
```

Or add to an existing project with:

```
composer require tecnickcom/tc-lib-pdf-font ^2.0
```

Font conversion
---------------

[](#font-conversion)

To import fonts in bulk, please check the convert program in resources/cli.

Packaging
---------

[](#packaging)

This library is mainly intended to be used and included in other PHP projects using Composer. However, since some production environments dictates the installation of any application as RPM or DEB packages, this library includes make targets for building these packages (`make rpm` and `make deb`). The packages are generated under the `target` directory.

When this library is installed using an RPM or DEB package, you can use it your code by including the autoloader:

```
require_once ('/usr/share/php/Com/Tecnick/Pdf/Font/autoload.php');

```

Developer(s) Contact
--------------------

[](#developers-contact)

\*2026 Nicola Asuni

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~8 days

Total

102

Last Release

84d ago

Major Versions

1.16.1 → 2.0.72023-11-17

PHP version history (3 changes)1.0.1PHP &gt;=5.4.0

2.5.0PHP &gt;=8.0

2.6.5PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8ee10615840cb28715139809c13ec322d1ccd902506b090469702e5b9d7b88e?d=identicon)[nicolaasuni](/maintainers/nicolaasuni)

---

Top Contributors

[![nicolaasuni](https://avatars.githubusercontent.com/u/1186996?v=4)](https://github.com/nicolaasuni "nicolaasuni (176 commits)")[![mreiden](https://avatars.githubusercontent.com/u/6321246?v=4)](https://github.com/mreiden "mreiden (6 commits)")[![mklemarczyk](https://avatars.githubusercontent.com/u/2727261?v=4)](https://github.com/mklemarczyk "mklemarczyk (1 commits)")[![valioDOTch](https://avatars.githubusercontent.com/u/800467?v=4)](https://github.com/valioDOTch "valioDOTch (1 commits)")

---

Tags

pdfimportfontafmttftc-lib-pdf-fontPFB

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tecnickcom-tc-lib-pdf-font/health.svg)

```
[![Health](https://phpackages.com/badges/tecnickcom-tc-lib-pdf-font/health.svg)](https://phpackages.com/packages/tecnickcom-tc-lib-pdf-font)
```

###  Alternatives

[tecnickcom/tc-lib-pdf

PHP PDF Library

1.8k452.3k7](/packages/tecnickcom-tc-lib-pdf)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[league/csv

CSV data manipulation made easy in PHP

3.5k166.1M646](/packages/league-csv)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
