1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef IOSPlatformFontList_H_
7 #define IOSPlatformFontList_H_
9 #include <CoreFoundation/CoreFoundation.h>
11 #include "CoreTextFontList.h"
13 class IOSPlatformFontList final
: public CoreTextFontList
{
15 static IOSPlatformFontList
* PlatformFontList() {
16 return static_cast<IOSPlatformFontList
*>(
17 gfxPlatformFontList::PlatformFontList());
20 static void LookupSystemFont(mozilla::LookAndFeel::FontID aSystemFontID
,
21 nsACString
& aSystemFontName
,
22 gfxFontStyle
& aFontStyle
);
25 nsTArray
<std::pair
<const char**, uint32_t>> GetFilteredPlatformFontLists()
29 friend class gfxPlatformMac
;
31 // Only the friend class gfxPlatformMac constructs this.
32 IOSPlatformFontList();
33 virtual ~IOSPlatformFontList();
36 #endif /* IOSPlatformFontList_H_ */