Yes, but I want to use without smoothing.
-------------------------------------------------------------------
Solved, for those who need to do the following:
Font.hpp.Add Prototype:
void Font2(bool render);
and variable:
bool render2;
Font.cpp.Add Prototype:
void Font::Font2(bool render)
{
render2 = render;
}
Line: 72, Font.cpp.Normal:
Font::Font() :
m_library (NULL),
m_face (NULL),
m_streamRec(NULL),
m_refCount (NULL)
{
}
For
Font::Font() :
m_library (NULL),
m_face (NULL),
m_streamRec(NULL),
m_refCount (NULL)
{
render2 =true; //Add
}
Line: 408, Font.cpp.Replace:
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_NORMAL, 0, 1);
For
// Convert the glyph to a bitmap (i.e. rasterize it)
if(render2){
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_NORMAL, 0, 1);
}else{
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_MONO, 0, 1);
}
Used:
sf::font Arial;
Arial.Font2(false);
if (!Tahoma.loadFromFile("D:/Windows/Fonts/Arial.ttf")){
//Error
}