Skip to content

Commit c76daa2

Browse files
committed
Fix font
1 parent cb4dd29 commit c76daa2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/yup_graphics/yup_Font.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ File getValidFontFile()
3434
File ("/")
3535
#else
3636
File (__FILE__)
37-
#endif
3837
.getParentDirectory()
3938
.getParentDirectory()
39+
#endif
4040
.getChildFile ("data")
4141
.getChildFile ("fonts")
4242
.getChildFile ("Linefont-VariableFont_wdth,wght.ttf");
@@ -155,7 +155,6 @@ TEST (FontTests, LoadFromDirectory)
155155
EXPECT_FALSE (result.wasOk());
156156
}
157157

158-
#if ! YUP_EMSCRIPTEN
159158
TEST (FontTests, LoadFromFileWithValidFile)
160159
{
161160
Font font;
@@ -491,7 +490,6 @@ TEST (FontTests, VariableFont_FontMetrics)
491490
EXPECT_NE (0.0f, font.getDescent());
492491
EXPECT_GT (font.getWeight(), 0);
493492
}
494-
#endif
495493

496494
// ==============================================================================
497495
// Height Tests

0 commit comments

Comments
 (0)