Qt treat same font family as a different
-
Hello,
Below is my problem statementProblem 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 showsInstall 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
Thanks a lot in advance.
-
Is there any way to do it?
Let me know if required any additional information?
Thanks