# pdf_fonts

Font data consumed by the PDF generator ([`Cf_tcpdf`](../Cf_tcpdf.php)), which wraps
[`tecnickcom/tc-lib-pdf`](https://github.com/tecnickcom/tc-lib-pdf). These are **generated**
files, not hand-edited. `Cf_tcpdf` points the library here via:

```php
define('K_PATH_FONTS', FCPATH . 'application/libraries/pdf_fonts/');
```

## Regenerating or adding a font

Use the converter shipped with the library:

```bash
php vendor/tecnickcom/tc-lib-pdf-font/util/convert.php \
    -i /path/to/RedHatText-Regular.ttf \
    -o application/libraries/pdf_fonts/
```

**The source `.ttf`/`.otf` files are not committed to this repo.** To update or
re-embed a font you need the originals.

## Licensing

- **RedHatText** — Red Hat's brand typeface under the **SIL OFL 1.1**
  ([RedHatFont](https://github.com/RedHatOfficial/RedHatFont)). OFL allows embedding
  and bundling in sellable software; just keep [`OFL.txt`](OFL.txt) shipped alongside with the fonts.
- **Base core fonts** (Courier/Helvetica/Times/Symbol/ZapfDingbats). From `tecnickcom/tc-lib-pdf-font` 
  (**LGPL-3.0-or-later**).

If you add a new embedded font, confirm its license allows PDF embedding and record
its provenance and license here.
