GFontDatabase.h 370 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <AK/AKString.h>
  3. #include <AK/HashMap.h>
  4. #include <AK/Function.h>
  5. class Font;
  6. class GFontDatabase {
  7. public:
  8. static GFontDatabase& the();
  9. RetainPtr<Font> get_by_name(const String&);
  10. void for_each_font(Function<void(const String&)>);
  11. private:
  12. GFontDatabase();
  13. ~GFontDatabase();
  14. HashMap<String, String> m_name_to_path;
  15. };