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. When would QFontInfo::exactMatch() ever return false?
Forum Updated to NodeBB v4.3 + New Features

When would QFontInfo::exactMatch() ever return false?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 608 Views 1 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.
  • M Offline
    M Offline
    mayaknife
    wrote on last edited by
    #1

    QFont represents the font you would like and QFontInfo represents the actual system font which you'll get. As such, the font QFontInfo refers to must exist, so wouldn't its exactMatch() method always return true? If it is capable of returning false, when would that happen?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Program may ask specific font characteristics. If those characteristics does not match with exact drawing, QFontInfo return false. QFontInfo object returns the values that apply to the font that will actually be used to draw the text. On Desktop you may not see much difference. May be it plays good role in Embedded Platform.

      Hope you have referred QFontInfo class details in QtAssistant.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0

      • Login

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