1
0
Fork 0

Minor formating fixes.

This commit is contained in:
Henrik Hautakoski 2019-12-29 22:26:05 +01:00
parent 6f53b0c069
commit 4df668e68f
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
76 changed files with 121 additions and 121 deletions

View file

@ -13,4 +13,4 @@ void FontDriver::setHinting(bool value)
m_hinting = value;
}
} // namespace sp
} // namespace sp

View file

@ -80,14 +80,14 @@ bool FreeTypeDriver::setCharacterSize(unsigned int size)
return true;
}
bool FreeTypeDriver::loadFromFile(const std::string& filename)
bool FreeTypeDriver::loadFromFile(const std::string& filename)
{
FT_Face face;
FT_Error error;
error = FT_New_Face(LibWrapper::getInstance().handle, filename.c_str(), 0, &face);
if (error) {
Log::warn("FreeType: could not load file (%s): %s",
Log::warn("FreeType: could not load file (%s): %s",
filename.c_str(), FT_GetErrorString(error));
return false;
}
@ -168,4 +168,4 @@ std::string FreeTypeDriver::getName()
return m_face->family_name;
}
} // namespace
} // namespace

View file

@ -11,7 +11,7 @@
const struct error_list {
int code;
const char* msg;
} ft_errors[] =
} ft_errors[] =
#include FT_ERRORS_H
const char* FT_GetErrorString(FT_Error error) {

View file

@ -7,4 +7,4 @@
const char* FT_GetErrorString(FT_Error error);
#endif /* SPECTRE_GRAPHICS_FONT_FREETYPE_ERROR_H */
#endif /* SPECTRE_GRAPHICS_FONT_FREETYPE_ERROR_H */