#pragma once #include #include #include #include "../base/logging.hpp" #include FT_FREETYPE_H #include FT_STROKER_H #include FT_GLYPH_H namespace ft2_impl { void CheckError(FT_Error error, char const * msg = 0); } #define FTCHECK(x) do { FT_Error e = (x); ft2_impl::CheckError(e); } while (false) #define FTCHECKRETURN(x, msg) \ do { FT_Error e = (x); \ if (e != 0) { ft2_impl::CheckError(e, msg); return; } } \ while (false)