Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Embedded Font in PDF
Forum Updated to NodeBB v4.3 + New Features

Embedded Font in PDF

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 370 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cookymonster30
    wrote on last edited by
    #1

    Hello Everyone,
    My question about font licensing and embedding in PDF from QT creator. An application that I have written gathers manually filled in data, formats it and exports it as an PDF. These PDF’s are then manually published on an small website.
    I am using Qt5.15.2

    QPrinter printer(QPrinter::PrinterResolution);
    printer.setOutputFormat(QPrinter::PdfFormat);
    printer.setPaperSize(QPrinter::A4);
    printer.setOutputFileName(Filename);
    printer.setPageMargins(QMarginsF(15, 15, 15, 15));
    document.print(&printer);
    

    For some reason the font “chosen” by Qt is Tahoma, nowhere in my code do I specify a font.
    When viewing the pdf in Adobe reader I noticed that Qt embedded a subset of Tahoma: "Language parts made red for privacy"
    tahoma.png

    Is this legal? The Licence on the Microsoft website says the following:

    When can I use document embedding?
    The brief answer: If an application follows the rules and restrictions defined in the OpenType or TrueType specification, you can use it to embed Windows supplied fonts in any document file it creates. For example, Microsoft Word and PowerPoint follow the rules and restrictions, so you can use these applications to create documents (such as Word documents, PowerPoint decks and PDFs) that include embedded fonts.

    Does Qt follow the “rules and restrictions defined in the OpenType or TrueType specification”, or do I need to worry that I am getting sued by Microsoft for unintentionally embedding the font in the PDF?
    Nowhere I can find how Qt handles the Type flags of Tahoma or even what the Type flags of Tahoma are… https://learn.microsoft.com/en-us/typography/opentype/spec/os2#fstype
    I am a bit stressed about this, do any of you know the answer?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's a pretty intriguing question. I think you should bring it to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Cookymonster30 deleted this topic on
      • C Cookymonster30 restored this topic on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved