mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
update test
This commit is contained in:
@@ -103,12 +103,13 @@ std::string get_font_filepath() {
|
||||
|
||||
// Explicit horror include (used to be implicit) - libslic3r "officialy" does not depend on imgui.
|
||||
#include "../../bundled_deps/imgui/imgui/imstb_truetype.h" // stbtt_fontinfo
|
||||
#include "boost/nowide/cstdio.hpp"
|
||||
TEST_CASE("Read glyph C shape from font, stb library calls ONLY", "[Emboss]") {
|
||||
std::string font_path = get_font_filepath();
|
||||
char letter = 'C';
|
||||
|
||||
// Read font file
|
||||
FILE *file = fopen(font_path.c_str(), "rb");
|
||||
FILE *file = boost::nowide::fopen(font_path.c_str(), "rb");
|
||||
REQUIRE(file != nullptr);
|
||||
// find size of file
|
||||
REQUIRE(fseek(file, 0L, SEEK_END) == 0);
|
||||
|
||||
Reference in New Issue
Block a user