Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG-GRAVITYPDF.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ Performance
* **Finding `<style>` and `<link>`.** The stylesheets in the HTML are found in two passes, one before HTML comments are removed and one after, instead of up to six. The search for a tag also steps over up to 16 other tags in one attempt instead of starting again after each. On a 1 MB table with one `<style>` and one `<link>`, reading the stylesheets takes about 2.5 ms instead of 7.7 ms with PCRE's JIT, and 30 ms instead of 80 ms without it. [#781] [#800]
* **Line breaking and colours.** A flowing block works out the width a line may take, after its text-indent, a dot tab's outdent and the floats beside it, once per line instead of once per character. `SetColor()` keeps the operator it builds for each colour instead of formatting it each time a colour is set. A 57-page document of justified paragraphs renders about 10% faster, and pages of bordered boxes about 7%. [#843]
* **Character ranges.** Substitution reads which characters a backup font has from a small file instead of the font, so only the font it uses is loaded. Every font package ships them beside its fonts, mPDF writes one into the font cache for any other font the first time it builds its metrics, and `vendor/bin/mpdf-font-ranges` writes one for a font package of your own to ship. [#827]
* **Packaged fonts.** TrueType hinting is removed from the 51 packaged fonts whose licences allow it: Aboriginal Sans, Ayar, DejaVu, GNU FreeFont, Garuda, Khmer OS, Lohit Kannada, MPH 2B Damase, Pothana 2000, UnBatang and XB Riyaz. Those files are 10.94 MB (24.3%) smaller, and PDFs embedding them about 24% smaller, with the same outlines and metrics. `utils/dehint_fonts.py` holds the list. [#850] [#853]

Bugfixes
--------
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"ext-imagick": "Needed if developing the Mpdf library",
"easybill/e-invoicing": "Writes the Factur-X / ZUGFeRD / XRechnung XML that SetEmbeddedInvoice() embeds, and UBL; HtmlInvoiceWriter prints both (PHP 8.3+)",
"horstoeko/zugferd": "Writes the Factur-X / ZUGFeRD / XRechnung XML that SetEmbeddedInvoice() embeds, on PHP older than 8.3",
"mpdf/font-bundle-all": "All official mPDF fonts that offers coverage for common and uncommon scripts worldwide. Uses 110MB of disk space.",
"mpdf/font-bundle-lite": "A subset of official mPDF fonts that offers coverage for most common scripts. Uses 30MB of disk space.",
"mpdf/font-dejavu-family": "A unicode font family with reasonable coverage of common scripts. Uses 10MB of disk space."
"mpdf/font-bundle-all": "All official mPDF fonts that offers coverage for common and uncommon scripts worldwide. Uses 99MB of disk space.",
"mpdf/font-bundle-lite": "A subset of official mPDF fonts that offers coverage for most common scripts. Uses 26MB of disk space.",
"mpdf/font-dejavu-family": "A unicode font family with reasonable coverage of common scripts. Uses 9MB of disk space."
},
"bin": [
"bin/mpdf-font-ranges"
Expand Down
4 changes: 3 additions & 1 deletion packages/Aboriginal-Family/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The Aboriginal Sans fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Aboriginal-Family/fonts/AboriginalSansBOLD.ttf
Binary file not shown.
Binary file modified packages/Aboriginal-Family/fonts/AboriginalSansBOLDITALIC.ttf
Binary file not shown.
Binary file modified packages/Aboriginal-Family/fonts/AboriginalSansITALIC.ttf
Binary file not shown.
Binary file modified packages/Aboriginal-Family/fonts/AboriginalSansREGULAR.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 1445592,
'size' => 1053856,
'ranges' => [
[0x000D, 0x000D], [0x0020, 0x007E], [0x00A0, 0x01A9], [0x01AB, 0x01B9],
[0x01BB, 0x01BC], [0x01BE, 0x01BE], [0x01C0, 0x01F6], [0x01F8, 0x0220],
Expand Down
4 changes: 3 additions & 1 deletion packages/Dejavu-Family/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSans-Bold.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSans-BoldOblique.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSans-Oblique.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSans.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Dejavu-Family/fonts/DejaVuSans.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 741536,
'size' => 657748,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x02E9], [0x02EC, 0x02EE], [0x02F3, 0x02F3],
[0x02F7, 0x02F7], [0x0300, 0x034F], [0x0351, 0x0353], [0x0357, 0x0358],
Expand Down
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansCondensed-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansCondensed-Oblique.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansCondensed.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 690388,
'size' => 681360,
'ranges' => [
[0x0008, 0x0009], [0x000D, 0x000D], [0x001D, 0x001D], [0x0020, 0x007E],
[0x00A0, 0x02E9], [0x02EC, 0x02EE], [0x02F3, 0x02F3], [0x02F7, 0x02F7],
Expand Down
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansMono-Bold.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansMono-BoldOblique.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansMono-Oblique.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSansMono.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Dejavu-Family/fonts/DejaVuSansMono.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 335068,
'size' => 308600,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x01C3], [0x01CD, 0x01E3], [0x01E6, 0x01F0],
[0x01F4, 0x01F6], [0x01F8, 0x01F9], [0x01FC, 0x0221], [0x0224, 0x0241],
Expand Down
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerif-Bold.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerif-BoldItalic.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerif-Italic.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerif.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Dejavu-Family/fonts/DejaVuSerif.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 367260,
'size' => 328772,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x02CD], [0x02D0, 0x02D3], [0x02D6, 0x02DE],
[0x02E0, 0x02E9], [0x02EC, 0x02EC], [0x02EE, 0x02F0], [0x02F3, 0x02F3],
Expand Down
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerifCondensed-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerifCondensed-Italic.ttf
Binary file not shown.
Binary file modified packages/Dejavu-Family/fonts/DejaVuSerifCondensed.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 334040,
'size' => 327996,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x02CD], [0x02D0, 0x02D3], [0x02D6, 0x02DE],
[0x02E0, 0x02E9], [0x02EC, 0x02EC], [0x02EE, 0x02F0], [0x02F3, 0x02F3],
Expand Down
2 changes: 1 addition & 1 deletion packages/Font-Bundle-All/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Introduction

A helper package that installs a full suite of fonts (110MB) designed to support most languages worldwide. This package is used with the [mPDF library](https://github.com/mpdf/mpdf).
A helper package that installs a full suite of fonts (99MB) designed to support most languages worldwide. This package is used with the [mPDF library](https://github.com/mpdf/mpdf).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/Font-Bundle-Lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Introduction

A helper package that installs a subset of fonts (30MB) designed to support most common languages worldwide. This package is used with the [mPDF library](https://github.com/mpdf/mpdf).
A helper package that installs a subset of fonts (26MB) designed to support most common languages worldwide. This package is used with the [mPDF library](https://github.com/mpdf/mpdf).

## Installation

Expand Down
4 changes: 3 additions & 1 deletion packages/Free-Family/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Free-Family/fonts/FreeMono.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Free-Family/fonts/FreeMono.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 584424,
'size' => 368440,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x0220], [0x0224, 0x0233], [0x0237, 0x0237],
[0x0250, 0x036F], [0x0374, 0x0375], [0x037A, 0x037A], [0x037E, 0x037E],
Expand Down
Binary file modified packages/Free-Family/fonts/FreeMonoBold.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeMonoBoldOblique.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeMonoOblique.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSans.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Free-Family/fonts/FreeSans.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 1563256,
'size' => 829428,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x01BB], [0x01BE, 0x01F5], [0x01F7, 0x0220],
[0x0224, 0x0233], [0x0237, 0x0239], [0x0250, 0x036F], [0x0374, 0x0375],
Expand Down
Binary file modified packages/Free-Family/fonts/FreeSansBold.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSansBoldOblique.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSansOblique.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSerif.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Free-Family/fonts/FreeSerif.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 3303588,
'size' => 1991300,
'ranges' => [
[0x000D, 0x000D], [0x0020, 0x007E], [0x00A0, 0x0377], [0x037A, 0x037E],
[0x0384, 0x038A], [0x038C, 0x038C], [0x038E, 0x03A1], [0x03A3, 0x0527],
Expand Down
Binary file modified packages/Free-Family/fonts/FreeSerifBold.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSerifBoldItalic.ttf
Binary file not shown.
Binary file modified packages/Free-Family/fonts/FreeSerifItalic.ttf
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/Garuda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Garuda/fonts/Garuda-Bold.ttf
Binary file not shown.
Binary file modified packages/Garuda/fonts/Garuda-BoldOblique.ttf
Binary file not shown.
Binary file modified packages/Garuda/fonts/Garuda-Oblique.ttf
Binary file not shown.
Binary file modified packages/Garuda/fonts/Garuda.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Garuda/fonts/Garuda.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 55756,
'size' => 39092,
'ranges' => [
[0x001D, 0x001D], [0x0020, 0x007E], [0x00A0, 0x00FF], [0x0131, 0x0131],
[0x0152, 0x0153], [0x0160, 0x0161], [0x0178, 0x0178], [0x0192, 0x0192],
Expand Down
4 changes: 3 additions & 1 deletion packages/Khmer-OS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Khmer-OS/fonts/KhmerOS.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Khmer-OS/fonts/KhmerOS.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 265988,
'size' => 129088,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x00CF], [0x00D1, 0x0103], [0x0110, 0x0111],
[0x0128, 0x012B], [0x0131, 0x0131], [0x0141, 0x0142], [0x0152, 0x0153],
Expand Down
4 changes: 3 additions & 1 deletion packages/Lohit-Kannada/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The font here is modified: its TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Its outlines and metrics are unchanged.
Binary file modified packages/Lohit-Kannada/fonts/Lohit-Kannada.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Lohit-Kannada/fonts/Lohit-Kannada.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 197872,
'size' => 196516,
'ranges' => [
[0x000C, 0x000C], [0x0020, 0x0040], [0x005B, 0x0060], [0x007B, 0x007E],
[0x00A2, 0x00A2], [0x00D7, 0x00D7], [0x00F7, 0x00F7], [0x0964, 0x0965],
Expand Down
4 changes: 3 additions & 1 deletion packages/Middle-East-Scripts-Bundle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ This package is licensed under the MIT License. Fonts are licensed separately by
- `lateef`: [LICENSE-Lateef.txt](./fonts/LICENSE-Lateef.txt)
- `xbriyaz`: [LICENSE-XB-Riyaz.txt](./fonts/LICENSE-XB-Riyaz.txt)
- `estrangeloedessa`: [LICENSE-Estrangelo-Edessa.txt](./fonts/LICENSE-Estrangelo-Edessa.txt)
- `taameydavidclm`: [LICENSE-TaameyDavidCLM.txt](./fonts/LICENSE-TaameyDavidCLM.txt)
- `taameydavidclm`: [LICENSE-TaameyDavidCLM.txt](./fonts/LICENSE-TaameyDavidCLM.txt)

The XB Riyaz fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Middle-East-Scripts-Bundle/fonts/XB Riyaz.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 1144764,
'size' => 1097576,
'ranges' => [
[0x000D, 0x000D], [0x0020, 0x007F], [0x00A0, 0x00FF], [0x011E, 0x011F],
[0x0130, 0x0131], [0x0141, 0x0142], [0x0152, 0x0153], [0x015E, 0x0161],
Expand Down
Binary file modified packages/Middle-East-Scripts-Bundle/fonts/XB RiyazBd.ttf
Binary file not shown.
Binary file modified packages/Middle-East-Scripts-Bundle/fonts/XB RiyazBdIt.ttf
Binary file not shown.
Binary file modified packages/Middle-East-Scripts-Bundle/fonts/XB RiyazIt.ttf
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/Mph2bDamase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/Mph2bDamase/fonts/damase_v.2.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Mph2bDamase/fonts/damase_v.2.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 900260,
'size' => 628996,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x00AC], [0x00AE, 0x0183], [0x0189, 0x018C],
[0x018E, 0x0190], [0x0192, 0x0192], [0x0197, 0x0197], [0x019A, 0x019B],
Expand Down
4 changes: 3 additions & 1 deletion packages/Myanmar-Bundle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ This package is licensed under the MIT License. Fonts are licensed separately by
- `ayar`: [LICENSE-Ayar.txt](./fonts/LICENSE-Ayar.txt)
- `padaukbook`: [LICENSE-Padauk.txt](./fonts/LICENSE-Padauk.txt)
- `tharlon`: [LICENSE-Tharlon.txt](./fonts/LICENSE-Tharlon.txt)
- `zawgyi-one`: [LICENSE-ZawgyiOne.txt](./fonts/LICENSE-ZawgyiOne.txt)
- `zawgyi-one`: [LICENSE-ZawgyiOne.txt](./fonts/LICENSE-ZawgyiOne.txt)

The `ayar` font here is modified: its TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Its outlines and metrics are unchanged.
Binary file modified packages/Myanmar-Bundle/fonts/ayar.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Myanmar-Bundle/fonts/ayar.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 282664,
'size' => 176456,
'ranges' => [
[0x0020, 0x007E], [0x00A0, 0x00A3], [0x00A5, 0x00A5], [0x00A7, 0x00A9],
[0x00AB, 0x00AC], [0x00AE, 0x00B1], [0x00B4, 0x00B7], [0x00BB, 0x00BB],
Expand Down
4 changes: 3 additions & 1 deletion packages/Pothana2000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The font here is modified: its TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Its outlines and metrics are unchanged.
Binary file modified packages/Pothana2000/fonts/Pothana2000.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/Pothana2000/fonts/Pothana2000.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 194268,
'size' => 192952,
'ranges' => [
[0x0020, 0x0040], [0x005B, 0x0060], [0x007B, 0x007E], [0x00F7, 0x00F7],
[0x0C01, 0x0C03], [0x0C05, 0x0C0C], [0x0C0E, 0x0C10], [0x0C12, 0x0C28],
Expand Down
4 changes: 3 additions & 1 deletion packages/UnBatang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ mPDF reads a `.ranges.php` file only from the directory of the font package that

## License

This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.
This package is licensed under the MIT License. Fonts are licensed separately by their authors, and can be found in the [`/fonts/LICENSE.txt`](./fonts/LICENSE.txt) file.

The fonts here are modified: their TrueType hinting has been removed by `utils/dehint_fonts.py` in the mPDF repository. Their outlines and metrics are unchanged.
Binary file modified packages/UnBatang/fonts/UnBatang.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/UnBatang/fonts/UnBatang.ttf.ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [
'format' => 1,
'size' => 6157280,
'size' => 4187348,
'ranges' => [
[0x000D, 0x000D], [0x0020, 0x007E], [0x00A1, 0x00FF], [0x0111, 0x0111],
[0x0126, 0x0127], [0x0131, 0x0133], [0x0138, 0x0138], [0x013F, 0x0142],
Expand Down
Binary file modified packages/UnBatang/fonts/UnBatangBold.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/Mpdf/AddFontTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testAddUnsupportedFont()
public function testDejavuSerifCondensed()
{
$ttf = $this->mpdf->FontFiles['dejavuserifcondensed'];
$this->assertEquals(334040, $ttf['length1']);
$this->assertEquals(filesize($ttf['ttffile']), $ttf['length1']);
$this->assertSame('TTF', $ttf['type']);
$this->assertFalse($ttf['sip']);
$this->assertFalse($ttf['smp']);
Expand Down
Binary file modified tests/data/snapshots/angle-bracket-in-attribute-plain.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/angle-bracket-in-attribute.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/angle-bracket-in-tag.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/attribute-selectors-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/attribute-selectors.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/attribute-value.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/attribute-whitespace.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/auto-padding-border-radius.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/auto-visibility.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/autofont.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/background-shorthand.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/background-size.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-border-radius.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-image-overflow-indent.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-image.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-inside-inline-catalogue-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-inside-inline-catalogue-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-inside-inline.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-min-max-width.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/block-width-overflow.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/border-shorthand.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/break-properties.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/chained-context-positioning.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/character-ranges.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-cbdt.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-colrv0.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-colrv1.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-sbix.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-svg-noto.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-emoji-svg.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/color-value.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/column-balance.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/column-translucent-background.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/compound-id-class-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/computed-values-brochure-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/computed-values-brochure-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/computed-values.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/core-font-backup-first-render.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/css-wide-keywords-invoice-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/css-wide-keywords-invoice-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/css-wide-keywords.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/current-color-document-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/current-color-document-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/current-color.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/decorations-amendment-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/decorations-amendment-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/decorations-propagate.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/descendant-lang-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/dictionary-line-breaking.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/dot-tab.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/email-invoice-template-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/email-invoice-template-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/empty-button-caption.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/empty-textarea.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/end-tag-whitespace.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/exif-orientation-greyscale.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/exif-orientation.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-basic-wl.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-basic.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-en16931.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-extended.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-minimum.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/facturx-xrechnung.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/fixed-pseudo-classes.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/float-page-areas.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/font-shorthand-family.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/font-shorthand-resets.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/form-fields-active.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/form-fields-pdfa.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/form-fields-shaped.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/form-fields-static.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/form-fields-trimmed-shaped.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-cascade-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-cascade-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-important-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-important-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-stylesheet-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/framework-stylesheet-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/gradient-first-stop.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/gradient-position-zero-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/gradient-position-zero.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/gradient-stop-position-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/gradient-stop-position.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/html-comment.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/image-border-radius.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/image-percentage-in-rotated-table.pdf
Binary file not shown.
Binary file not shown.
Binary file modified tests/data/snapshots/image-percentage-in-table-cell.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/image-transform.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/important-declarations.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/important-page-rule-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/important-page-rule-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/index-of-fifty-entries.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/index-page-number-styles.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/indic-cluster-mask.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inherited-channels.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inherited-report-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inherited-report-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-ancestor-selectors-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-ancestor-selectors.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-important.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-line-height-article-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-line-height-article-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/inline-line-height.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/invoice-many-lines.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/invoice-reverse-charge.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/invoice-translated.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/invoice-usd.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/joining-tables.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/justify.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/khmer-coeng.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/large-subtable.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/legacy-css-mode.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/letter-direction.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/line-height-zero-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/line-height-zero.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/linear-gradient-direction-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/linear-gradient-direction.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/list-style-image-case.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/list-style-type.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/list-style-unicode-marker.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/logical-selectors-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/logical-selectors.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/long-index.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/long-table-of-contents.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/look-ahead-selectors.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/look-ahead-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/matched-context.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/media-queries-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/media-queries.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/meta-tags-in-script.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/modern-color-syntax.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/multiple-tables-of-contents.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nested-advance.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nested-at-rules.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nested-lookup-coverage.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nested-same-name-element.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nth-child-argument.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nth-child-cell.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nth-child-row-group.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nth-child-table-contexts.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/nth-child-table-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/orphan-list-item.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/outline-properties.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/overline-thickness.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-content.pdf
Binary file not shown.
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-early-break.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-floats.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-forms.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-layout.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-references.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-break-avoid-state.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/page-size-names.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/paging-css.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/paging-html.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/parent-relative-font-report-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/parent-relative-font-report-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/parent-relative-font-values.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/pdfx4-flattened-form.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/pdfx4-rgb-and-grey.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/png-transparency.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/positioned-block-rotate.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/positioned-block-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/positioned-block-vertical-margins.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/presentational-attributes.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/pseudo-page-areas.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/pseudo-page-rules.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/root-typography-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/root-typography-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/row-page-break-left-right.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/row-page-break.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/row-properties-to-cells.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/row-styled-invoice-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/row-styled-invoice-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/rtl-after-first-page.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/rtl.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/script-tag.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/set-width-page-areas.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/shadow.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/shorthand-resets.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/shrunk-fixed-pos-form.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/sip-coverage.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/standard-cascade.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/static-list-box.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/structural-selectors-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/structural-selectors.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/style-and-link-blocks.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/stylesheet-syntax.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/stylesheet-url.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/sup-sub-rules-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/sup-sub-rules-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-class.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-nested-use.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-nested-viewport.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-outer-viewbox.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-references.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-text-color-alpha.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/svg-title.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-background.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-cell-descendant-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-in-blocks-article-legacy.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-in-blocks-article-standard.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-inherits-from-block.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/table-page-break-before.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/tag-attribute.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/tag-in-attribute-value.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/tai-tham-sakot.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/text-field-linefeed.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/title-not-drawn.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/unicode-zero-width-space.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/universal-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/universal-stylesheet.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/unmatchable-descendant-selector.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/unparseable-declaration.pdf
Binary file not shown.
Binary file modified tests/data/snapshots/watermark.pdf
Binary file not shown.
Loading