mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:02:45 +00:00 
			
		
		
		
	Ladybird: Specify the emoji image path in Ladybird's font plugin
This commit is contained in:
		
							parent
							
								
									fd1fbad1d2
								
							
						
					
					
						commit
						9fb7f7fceb
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -11,6 +11,7 @@ | |||
| #include <AK/DeprecatedString.h> | ||||
| #include <AK/String.h> | ||||
| #include <LibCore/StandardPaths.h> | ||||
| #include <LibGfx/Font/Emoji.h> | ||||
| #include <LibGfx/Font/FontDatabase.h> | ||||
| #include <QFont> | ||||
| #include <QFontInfo> | ||||
|  | @ -31,6 +32,8 @@ FontPluginQt::FontPluginQt() | |||
|     Gfx::FontDatabase::set_default_font_query("Katica 10 400 0"); | ||||
|     Gfx::FontDatabase::set_fixed_width_font_query("Csilla 10 400 0"); | ||||
| 
 | ||||
|     Gfx::Emoji::set_emoji_lookup_path(String::formatted("{}/res/emoji", s_serenity_resource_root).release_value_but_fixme_should_propagate_errors()); | ||||
| 
 | ||||
|     update_generic_fonts(); | ||||
| 
 | ||||
|     auto default_font_name = generic_font_name(Web::Platform::GenericFont::UiSansSerif); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn