all the dependencies

This commit is contained in:
madrocketsci committed 2025-06-11 20:00:04 -04:00
1 parent bbb97be6c4
commit 5c9f70268a
246 files changed
+108587 -3

No files matched your search

@@ -0,0 +1,49 @@
#include <amsfontconverter4/amsfontconverter4.hpp>
namespace ams
{
namespace font4
{
void test_printglyph(amsbitplane *glyph)
{
int I,J;
for(I=0;I<glyph->Ny;I++)
{
for(J=0;J<glyph->Nx;J++)
if(glyph->at(J,I)==0) printf(".");
else printf("x");
printf("\n");
}
}
void test_getglyph1()
{
int I,J,K;
int charheight = 20;
freetype_fontfaceloader ftload;
amsbitplane ggg;
amsglyphmetrics gm;
ftload.open("../inputfonts/FreeMono.ttf");
for(I=0;I<512;I++)
{
J = ftload.hasglyph(I);
printf("%d: %d\t",I,J);
if(I%7==0) printf("\n");
}
I = 70;
I = 511;
ftload.getglyph((uint32_t) I,(uint32_t) charheight,&ggg,&gm);
gm.print();
test_printglyph(&ggg);
ftload.close();
}
};
};
+1 -1
View File
@@ -4,6 +4,6 @@ int main(int argc, char* argv[])
{
int ret = 0;
printf("ams fontconverter4 tests.\n");
ams::font4::test_getglyph1();
return ret;
}