Fix freetype font build for windows
This commit is contained in:
parent
f177f29a60
commit
5141643531
1 changed files with 2 additions and 1 deletions
|
|
@ -334,7 +334,8 @@ namespace psemek::fonts
|
||||||
std::unique_ptr<font_builder> load_freetype_font(wgpu::device device, std::filesystem::path const & path)
|
std::unique_ptr<font_builder> load_freetype_font(wgpu::device device, std::filesystem::path const & path)
|
||||||
{
|
{
|
||||||
FT_Face face;
|
FT_Face face;
|
||||||
ft_check_result(FT_New_Face(ft_library(), path.c_str(), 0, &face), "Failed to load font " + path.string() + ": ");
|
auto path_str = path.string();
|
||||||
|
ft_check_result(FT_New_Face(ft_library(), path_str.data(), 0, &face), "Failed to load font " + path_str + ": ");
|
||||||
|
|
||||||
auto result = std::make_unique<freetype_font_builder>(std::make_shared<face_shared>(device, face));
|
auto result = std::make_unique<freetype_font_builder>(std::make_shared<face_shared>(device, face));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue