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. Bold and Regular fonts not loading simultaneously
Forum Updated to NodeBB v4.3 + New Features

Bold and Regular fonts not loading simultaneously

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 463 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
    mantra
    wrote on last edited by mantra
    #1

    Hi,

    I am facing font issue for japanese language, fonts : NotoSansSC

    If I am using Regular and Bold styles of NotoSansSC fonts in a single sentence, it is only loading either Regular or Bold.

    Can anyone provide any resolution? or it's the problem with these fonts itself?

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

      Hi,

      Which version of Qt ?
      On which OS ?
      You should provide a minimal compilable exemple that shows your issue.

      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
      0
      • M Offline
        M Offline
        mantra
        wrote on last edited by mantra
        #3

        Hi @SGaist ,

        OS: Windows 10
        Qt Version: Qt Creator 4.10.1 - Based on Qt 5.13.1 (MSVC 2017, 32 bit)
        Compiler: I am using mingw64

        Instead of compilable example I am sharing detailed problem statement which may help us leading towards resolution:

        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

        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