Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. font family
    Log in to post

    • UNSOLVED QPrinter recommended font
      General and Desktop • font size font family qt 5.12.3 font match print problem • • BartoszPaj  

      3
      0
      Votes
      3
      Posts
      106
      Views

      Settings for printer: _printer.setResolution(QPrinter::PrinterResolution); QPageSize pageSize(QPageSize::A4); _printer.setPageSize(pageSize); QPagedPaintDevice::Margins margins; margins.top = 11.5; margins.left = 12.6; margins.right = 11.5; margins.bottom = 11.8; _printer.setMargins (margins); _printer.setOutputFileName("output.pdf"); _printer.setOutputFormat(QPrinter::PdfFormat); Text Document QFont font; font.setPointSize(5); font.setFamily("Calibri"); font.setLetterSpacing(QFont::PercentageSpacing,100); doc.setDefaultFont(font); doc.setPageSize(_printer.pageSizeMM()); QTextCursor cursor(&doc); QTextBlockFormat block_format_title; block_format_title.setAlignment(Qt::AlignCenter); cursor.insertBlock(block_format_title); cursor.insertHtml(QString("<p><b>%1</b></p><br><br>").arg(file_theme.title)); QTextBlockFormat block_format; block_format.setAlignment(Qt::AlignLeft); cursor.insertBlock(block_format); cursor.insertHtml(QString("<p><b>Imię i nazwisko:</b> %1<br>").arg(file_theme.childName)); cursor.insertHtml(QString("<p><b>Terapeuta prowadzący:</b> %1<br>").arg(file_theme.therapistName)); cursor.insertHtml("<br>"); cursor.insertHtml(QString(HTML Text)); doc.print(&_printer); On yellow incorrect spaces between letters in word.
    • UNSOLVED Text's fontFamily property invalid in QML
      QML and Qt Quick • qml text font family • • wangzhe  

      2
      0
      Votes
      2
      Posts
      610
      Views

      Looks strange. There is one example called fontDatabase in Qt examples. Can you compile in msvc and check this font is available ?
    • SOLVED Get "real" Font
      General and Desktop • font family • • ckvsoft  

      3
      0
      Votes
      3
      Posts
      606
      Views

      Hi Nice- Yes this is it. It Works. Thx Chris
    • QWebView can't render unicode font on windows xp
      General and Desktop • qwebview font font family • • Giorgi  

      1
      0
      Votes
      1
      Posts
      708
      Views

      No one has replied

    • [SOLVED] Latin text became corrupted while text in other writing system present
      Mobile and Embedded • text font text rendering font family font match text corruption • • alexein1983  

      2
      0
      Votes
      2
      Posts
      750
      Views

      I found a workaround: Define environment variable within Qt application startup context: QML_USE_GLYPHCACHE_WORKAROUND = 1 Look on this topic: https://forum.qt.io/topic/39803/font-rendering-bug-on-some-android-devices/7