Lines 255-265
namespace zutty
Link Here
|
255 |
std::to_string (c)); |
255 |
std::to_string (c)); |
256 |
} |
256 |
} |
257 |
|
257 |
|
258 |
if (FT_Render_Glyph (face->glyph, FT_RENDER_MODE_NORMAL)) |
258 |
if (face->glyph->format != FT_GLYPH_FORMAT_BITMAP) |
259 |
throw std::runtime_error ( |
259 |
{ |
260 |
std::string ("FreeType: Failed to render glyph for char ") + |
260 |
if (FT_Render_Glyph (face->glyph, FT_RENDER_MODE_NORMAL)) |
261 |
std::to_string (c)); |
261 |
throw std::runtime_error ( |
262 |
|
262 |
std::string ("FreeType: Failed to render glyph for char ") + |
|
|
263 |
std::to_string (c)); |
264 |
} |
263 |
|
265 |
|
264 |
// destination pixel offset |
266 |
// destination pixel offset |
265 |
const unsigned int dx = face->glyph->bitmap_left > 0 |
267 |
const unsigned int dx = face->glyph->bitmap_left > 0 |