Skip to content

Commit

Permalink
Make preset font size optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jul 4, 2019
1 parent 6ed8b29 commit 65799fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/Entities/Font.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ class Fontinfo {
shadow_distance[1] = props.shadow_distance[1];
shadow_color = props.shadow_color;
no_break = props.no_break;
font_size = props.font_size;

if (font_size != -1)
font_size = props.font_size;
character_spacing = props.character_spacing;
if (props.line_height != -1)
line_height = props.line_height;
Expand Down

0 comments on commit 65799fe

Please sign in to comment.