mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			22 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			C
		
	
	
	
	
	
|   | #pragma once
 | ||
|  | 
 | ||
|  | #include <AK/AKString.h>
 | ||
|  | #include <AK/HashMap.h>
 | ||
|  | #include <AK/Function.h>
 | ||
|  | 
 | ||
|  | class Font; | ||
|  | 
 | ||
|  | class GFontDatabase { | ||
|  | public: | ||
|  |     static GFontDatabase& the(); | ||
|  | 
 | ||
|  |     RetainPtr<Font> get_by_name(const String&); | ||
|  |     void for_each_font(Function<void(const String&)>); | ||
|  | 
 | ||
|  | private: | ||
|  |     GFontDatabase(); | ||
|  |     ~GFontDatabase(); | ||
|  | 
 | ||
|  |     HashMap<String, String> m_name_to_path; | ||
|  | }; |