random bugs disappearing for no reason
This commit is contained in:
1 parent
422307e0bc
commit
34df3bd7c7
7 files changed
+5
-2
No files matched your search
@@ -188,6 +188,8 @@ facemetrics freetype_fontfaceloader::getfacemetrics(int charheight)
|
||||
FT_Set_Char_Size(face,charheight*64,0,100,0);
|
||||
FT_Set_Transform(face,&matrix,&pen);
|
||||
|
||||
// ret.xscale = face->size->metrics.x_scale/64; //this isn't really useful to me as a measurement
|
||||
// ret.yscale = face->size->metrics.y_scale/64;
|
||||
ret.ascender = face->size->metrics.ascender/64;
|
||||
ret.descender = face->size->metrics.descender/64;
|
||||
ret.max_advance = face->size->metrics.max_advance/64;
|
||||
|
||||
@@ -98,14 +98,15 @@ void test_glyphrange_load()
|
||||
{
|
||||
int res;
|
||||
int I;
|
||||
const char *fname = "../inputfonts/LiberationSerif-BoldItalic.ttf";
|
||||
//const char *fname = "../inputfonts/LiberationSerif-BoldItalic.ttf";
|
||||
const char *fname = "../inputfonts/FreeMono.ttf";
|
||||
uint32_t charindmin = 0;
|
||||
uint32_t charindmax = 512;
|
||||
|
||||
freetype_fontfaceloader ftload;
|
||||
amsglyphrange font;
|
||||
|
||||
int charheight = 128;
|
||||
int charheight = 30;
|
||||
|
||||
ftload.open(fname);
|
||||
|
||||
|
||||
Reference in new issue
Block a user