IOSPlatformFontList.h (1143B)
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/. */ 5 6 #ifndef IOSPlatformFontList_H_ 7 #define IOSPlatformFontList_H_ 8 9 #include <CoreFoundation/CoreFoundation.h> 10 11 #include "CoreTextFontList.h" 12 13 class IOSPlatformFontList final : public CoreTextFontList { 14 public: 15 static IOSPlatformFontList* PlatformFontList() { 16 return static_cast<IOSPlatformFontList*>( 17 gfxPlatformFontList::PlatformFontList()); 18 } 19 20 static void LookupSystemFont(mozilla::LookAndFeel::FontID aSystemFontID, 21 nsACString& aSystemFontName, 22 gfxFontStyle& aFontStyle); 23 24 protected: 25 nsTArray<std::pair<const char**, uint32_t>> GetFilteredPlatformFontLists() 26 override; 27 28 private: 29 friend class gfxPlatformMac; 30 31 // Only the friend class gfxPlatformMac constructs this. 32 IOSPlatformFontList(); 33 virtual ~IOSPlatformFontList(); 34 }; 35 36 #endif /* IOSPlatformFontList_H_ */