Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98818

Add more efficient way to check existence of font tables

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.0
    • GUI: Font handling
    • None
    • All

      There are a few places in Qt where we currently check the existence of font tables by copying the table and checking its size. This is really inefficient, and we only get away with it because the presence of the tables in question is so uncommon that it will not cause a slowdown in practice, since for almost all fonts it will just be a lookup in the font table directory and return false.

      But most platforms should have better ways of doing this. It would make sense to have a virtual bool QFontEngine::tableExists(const char *tag) which can be used for this purpose and which does the check in a platform-dependent way.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes