[Interest] Embedded Font in PDF

Kai Köhne Kai.Koehne at qt.io
Fri Aug 11 11:23:30 CEST 2023


Hi Zander,

> For some reason the font “chosen” by Qt is Tahoma, nowhere in my code do 
> I specify a font.

Tahoma is indeed the default font Qt uses on Windows.

> When viewing the pdf in Adobe reader I noticed that Qt embedded a subset of 
> Tahoma [...] Is this legal?

IANAL. Anyhow, Qt does seem to respect the flags that indicate the usage permissions of a font in the font metadata (fsType).

If you have doubts, you can always just disable the embedding of fonts at all, see QPrintEngine::PPK_FontEmbedding .

Kai


More information about the Interest mailing list