Minor formating fixes.
This commit is contained in:
parent
6f53b0c069
commit
4df668e68f
76 changed files with 121 additions and 121 deletions
|
|
@ -13,4 +13,4 @@ void FontDriver::setHinting(bool value)
|
|||
m_hinting = value;
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue