Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. how to display korean characters in qt/qml app on web?
Forum Updated to NodeBB v4.3 + New Features

how to display korean characters in qt/qml app on web?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
5 Posts 3 Posters 569 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.
  • C Offline
    C Offline
    chris2023
    wrote on last edited by
    #1

    Hi ! I have made UI of my app with qml, if I compile it with mingw or msvc as a pc app korean characters display well .But if I compile with webAssembly to run it as a webapp,korean characters can't be displayed in the browser. So if there someone who can help me I would really appreciate

    1 Reply Last reply
    0
    • SGaistS SGaist moved this topic from Wiki Discussion on
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      How are you setting the font used for your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      0
      • JasonWongJ Offline
        JasonWongJ Offline
        JasonWong
        wrote on last edited by JasonWong
        #3

        I think you have the same problem as displaying Chinese characters , that is, you need to manually load the Korean font file. I'm not sure if newer versions of Qt have solved this problem, if you see your Korean characters not displayed then that's the problem.

        Add the ttf file to qrc, then load it in the main function, and set the default font correctly, you can solve this problem

        Note that the font file may be very large, and you need to cut it according to the common characters list. The MiSans Chinese font I used is 8mb in its entirety, but only 1.5mb after cutting

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          How are you setting the font used for your application ?

          C Offline
          C Offline
          chris2023
          wrote on last edited by
          #4

          @SGaist I'm loading source sans pro font

          FontLoader{
              id: fontMedium
              source: "qrc:/font/SourceSansPro-Regular.ttf"
          }
          
          SGaistS 1 Reply Last reply
          0
          • C chris2023

            @SGaist I'm loading source sans pro font

            FontLoader{
                id: fontMedium
                source: "qrc:/font/SourceSansPro-Regular.ttf"
            }
            
            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You should check what is happening using FontLoader's status

            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

            • Login

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