Source/Gorgon/Graphics/FreeType.cpp

branch
ComponentStackRework
changeset 1444
53e69f1cea46
parent 1376
e15204b22280
child 1451
8d05e766f523
equal deleted inserted replaced
1443:11fc019aa4ae 1444:53e69f1cea46
15 FT_Vector *delta = nullptr, FT_Matrix *matrix = nullptr) { 15 FT_Vector *delta = nullptr, FT_Matrix *matrix = nullptr) {
16 16
17 if(delta || matrix) 17 if(delta || matrix)
18 FT_Set_Transform(face, matrix, delta); 18 FT_Set_Transform(face, matrix, delta);
19 19
20 auto error = FT_Load_Glyph(face, index, FT_LOAD_RENDER|(aa ? 0 : FT_LOAD_MONOCHROME)); 20 auto error = FT_Load_Glyph(face, index, FT_LOAD_RENDER|(aa ? FT_LOAD_TARGET_LIGHT : FT_LOAD_MONOCHROME));
21 21
22 if(error != FT_Err_Ok) 22 if(error != FT_Err_Ok)
23 return nullptr; 23 return nullptr;
24 24
25 auto slot = face->glyph; 25 auto slot = face->glyph;

mercurial