qt6-bb10/src/platformsupport
Simon Hausmann 3745b0ca12 Fix application font population on OS X
This patch fixes two issues that prevented the application font related tests
of tst_QFontDatabase from passing:

* The code for creating the font descriptor after the registration of an app font
  with file name using CTFontDescriptorCreateWithAttributes must create a dictionary
  with kCTFontURLAttribute as key and the CFURLRef pointing to the on-disk file as
  value. Unfortunately the code mixed up keys and values in the dictionary.

* Registration of app fonts within QFontDatabase itself on Windows and Fontconfig
  platforms works by QFontDatabase calling addApplicationFont on the platform db
  after calling populateFontDatabase(). It assumes that addApplicationFont on the
  platform db is capable of registering the font right away. This part was also
  missing from the Mac implementation and this patch implements it by moving the
  common registration code from a CTFontDescriptorRef out into a separate method,
  called from populateFontDatabase() as well as addApplicationFont().

Task-number: QTBUG-23062

Change-Id: Ide5e6bf277d99f3cab50ee0d4631cc3fba6d0d45
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
2013-07-31 07:54:01 +02:00
..
cfsocketnotifier QCFSocketNotifier: initialize member variable to avoid crash 2013-05-13 13:29:48 +02:00
cglconvenience mark private dependencies as such 2013-05-20 15:20:26 +02:00
devicediscovery mark private dependencies as such 2013-05-20 15:20:26 +02:00
eglconvenience Add qPopulationCount() function, extracted from QBitArray 2013-04-03 11:38:35 +02:00
eventdispatchers Correct implementation of nested runloop to match UIApplicationMain() 2013-06-13 12:41:05 +02:00
fbconvenience Android: Fix crash when using QBackingStore 2013-05-22 15:20:18 +02:00
fontdatabases Fix application font population on OS X 2013-07-31 07:54:01 +02:00
glxconvenience mark private dependencies as such 2013-05-20 15:20:26 +02:00
input Added rotation parameter to qevdevtouch 2013-06-06 10:11:32 +02:00
jniconvenience remove redundant QT statements 2013-05-20 15:20:26 +02:00
linuxaccessibility mark private dependencies as such 2013-05-20 15:20:26 +02:00
services Improve desktop environment detection. 2013-04-24 19:45:26 +02:00
themes Add API to let applications integrate with the system fonts 2013-07-05 17:29:18 +02:00
platformsupport.pro Move QBasicDrag and QSimpleDrag to QtGui. 2013-05-30 12:49:51 +02:00