Browse Source

no font guard

master
Odilitime 5 years ago
parent
commit
23b5a6720f
  1. 4
      src/graphics/text/TextRasterizer.cpp

4
src/graphics/text/TextRasterizer.cpp

@ -182,6 +182,10 @@ std::unique_ptr<rasterizationResponse> TextRasterizer::rasterize(const rasteriza @@ -182,6 +182,10 @@ std::unique_ptr<rasterizationResponse> TextRasterizer::rasterize(const rasteriza
}
unsigned int glyphCount;
if (!buffer) {
std::cout << "TextRasterizer::rasterize - no font loaded" << std::endl;
return nullptr;
}
hb_buffer_reset(buffer);
hb_buffer_set_direction(buffer, HB_DIRECTION_LTR);

Loading…
Cancel
Save