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. Qt treat same font family as a different

Qt treat same font family as a different

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 301 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.
  • D Offline
    D Offline
    Dhaval_joshi
    wrote on last edited by
    #1

    Hello,
    Below is my problem statement

    Problem Statement:
    I am using NotoSansSC font [OTF format] for ja-JP [Japanese] language,
    As mention below
    Font file:

    • NotoSansJP-Regular.otf
    • NotoSansJP-Black.otf

    NOTE: Above both the font belongs to the same font family NotoSansJP.

    While running the application I observed the below console log of the,

    MainApplication.cpp(275) -- strCurrentLanguageja-JP
    MainApplication.cpp(309) -- Installed font ID: 4 [NotoSansJP-Regular.otf]
    MainApplication.cpp(309) -- Installed font ID: 5 [NotoSansJP-Black.otf]
    Install Families styles: ("Black")
    MainApplication.cpp(325) -- Updated Default Font :Noto Sans JP Black
    installed font family------------> ("Noto Sans JP Black")
    

    Observation:
    It won't show installed font style to ("Regular", "Black")
    for NotoSansJP
    But if I load NotoSansJP-Regular.otf then it only shows

    Install Families styles: ("Regular")
    and installed font family------------> ("Noto Sans JP Regular")
    

    The same observation observed in zh-CN [Chiness] and ko-KR [Korean] language
    font file also.

    Question:

    • Is there any way to explicitly tell Qt to treat the same font family and
      add it in style?
    • Is this problem occurs due to .otf file?

    Can anyone please help me out with this problem?
    Let me know if any other information is required.

    Attachment 1 [NotoSansJP.PNG]: While I install the font in windows it treats as the same font family

    NotoSansJP.PNG

    Thanks a lot in advance.

    1 Reply Last reply
    1
    • D Offline
      D Offline
      Dhaval_joshi
      wrote on last edited by
      #2

      Is there any way to do it?
      Let me know if required any additional information?
      Thanks

      1 Reply Last reply
      1

      • Login

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