How do I embed fonts in an existing PDF?

This may not be the answer you are looking for (since you want to get your problems solved programmatically, not by an external tool). But you can use Ghostscript commandline to embed missing fonts in retrospect to PDFs which have not embedded them: gs \ -sFONTPATH=/path/to/fonts:/another/dir/with/more/fonts \ -o output-pdf-with-embedded-fonts.pdf \ -sDEVICE=pdfwrite \ -dPDFSETTINGS=/prepress \ input-pdf-where-some-fonts-are-not-embedded.pdf … Read more

Is it possible to adjust a font’s vertical scaling using CSS?

The transform property can be used to scale text. It’s for blocks, so you’ll need to also add display: inline-block in order to use it on HTML elements like <a>, <span>, <em>, <kbd>, etc. body { font-family: “HelveticaNeue-Medium”, sans-serif; font-size: 12px; } a.vertical-scaling { display: inline-block; transform: scale(1, 1.5); /* Safari and Chrome */ -webkit-transform: … Read more

Mime type for WOFF fonts?

Update from Keith Shaw’s comment on Jun 22, 2017: As of February 2017, RFC8081 is the proposed standard. It defines a top-level media type for fonts, therefore the standard media type for WOFF and WOFF2 are as follows: font/woff font/woff2 In January 2011 it was announced that in the meantime Chromium will recognize application/x-font-woff as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)