Skip to content

Commit

Permalink
Fix font config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Nov 15, 2024
1 parent dca38e5 commit d2aa210
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/font_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ void font_loader::load_throws( const cata_path &path )
} else {
config.read( "gui_typeface", gui_typeface );
}
if( gui_typeface.empty() ) {
gui_typeface.emplace_back( PATH_INFO::fontdir() + "Roboto-Medium.ttf" );
}
if( config.has_string( "map_typeface" ) ) {
map_typeface.emplace_back( config.get_string( "map_typeface" ) );
} else {
Expand Down Expand Up @@ -61,6 +58,7 @@ void font_loader::save( const cata_path &path ) const
JsonOut json( stream, true ); // pretty-print
json.start_object();
json.member( "typeface", typeface );
json.member( "gui_typeface", typeface );
json.member( "map_typeface", map_typeface );
json.member( "overmap_typeface", overmap_typeface );
json.end_object();
Expand Down

0 comments on commit d2aa210

Please sign in to comment.