Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Add test for PingFang TC Semibold
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshalamov authored and 1ec5 committed Apr 24, 2020
1 parent afc8669 commit 3d3b021
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions test/text/local_glyph_rasterizer.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ TEST(LocalGlyphRasterizer, PingFang) {
#endif // defined(__APPLE__)
}

#if !defined(__QT__)
TEST(LocalGlyphRasterizer, PingFangSemibold) {
LocalGlyphRasterizerTest test(std::string("PingFang TC Semibold"));

test.fileSource->glyphsResponse = [&](const Resource& resource) {
EXPECT_EQ(Resource::Kind::Glyphs, resource.kind);
Response response;
response.data = std::make_shared<std::string>(util::read_file("test/fixtures/resources/glyphs.pbf"));
return response;
};
test.map.getStyle().loadJSON(util::read_file("test/fixtures/local_glyphs/mixed.json"));
test.checkRendering("ping_fang_semibold", 0.0161);
}
#endif // !defined(__QT__)

#endif // defined(__APPLE__)

#if defined(__linux__) && defined(__QT__)
Expand Down

0 comments on commit 3d3b021

Please sign in to comment.