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. Access ligature Glyphs and Unicodes

Access ligature Glyphs and Unicodes

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 502 Views
  • 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
    CBenussi
    wrote on last edited by
    #1

    Hi,

    I am developing an application that uses Arabic fonts, and also I would like to have access to the Unicode of the rendered text.

    In details:

    1. I am giving the Unicodes of the desired Arabic char/letters to display (0x0628 for instance).
    2. I create a QString, on which I append every QChar(unicode) created previously (for instance let's say I gave 0x0628 and 0x0628 as Unicodes).
    3. I render the QString thanks to a QLabel on which I set the font to arabic (QLabel::setFont(QFont("Arabic")). The string is rendered as a unique ligature glyph (since I gave two 0x0628). But if I try to get the Unicode of the rendered text (I use QString::toUcs4() ) I receive back two 0x0628 Unicodes, instead of the Unicode of the effectively rendered Glyph (which should be around 0xFCxx, as pointed out in the presentation forms)

    How can I access the Unicode of the rendered text, in the case of ligature Glyphs? I tried to look at QGlyphRun and QRawFont but I still haven't found the right functions to call.

    Thanks in advance.

    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