I want to download my TTF file to printer and use it.
I found that PCLT is needed in TTF file to convert it to font data for for printer language.
PCL5 is installed in my printer, no PostScript.
Please let me know how to add PCLT to my font file.
Thanks
Hi Ranny, and welcome to the Language Software Community.
According to the OpenType font specification:
Use of the PCLT table in OpenType fonts is strongly discouraged.
If PCLT is still needed in some contexts, it isn’t clear to me why Microsoft would give this recommendation.
In any case, I was hoping you could use a tool such as ttx to add a PCLT table to your own copies of font files, but according to their documentation PCLT isn’t supported
Bob
While ttx doesn’t “support” PCLT, I think it will dump (to xml) and read (from xml) the PCLT table — it is just in hexadecimal format rather than something more friendly.
The table is only 27 bytes long so shouldn’t be onerous to code in hex.
You could start by dumping the PCLT from an existing font, e.g.,
ttx -t PCLT myfont.ttf
Use the resulting myfont.ttx
(and the OpenType spec) to understand the format and then create a similar file for the font without a PCLT. Then merge the new .ttx file to the other font using:
ttx -m pclt.ttx -o newfont.ttf otherfont.ttf