mirror of https://github.com/buggins/dlangui.git
FontConfig support - elapsed time measurements
This commit is contained in:
parent
5a977066a4
commit
be99e37fa2
|
@ -630,6 +630,9 @@ bool registerFontConfigFonts(FreeTypeFontManager fontMan) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.i("Getting list of fonts using FontConfig");
|
||||||
|
long startts = currentTimeMillis();
|
||||||
|
|
||||||
FcFontSet *fontset;
|
FcFontSet *fontset;
|
||||||
|
|
||||||
FcObjectSet *os = FcObjectSetBuild(FC_FILE.toStringz, FC_WEIGHT.toStringz, FC_FAMILY.toStringz,
|
FcObjectSet *os = FcObjectSetBuild(FC_FILE.toStringz, FC_WEIGHT.toStringz, FC_FAMILY.toStringz,
|
||||||
|
@ -815,7 +818,8 @@ bool registerFontConfigFonts(FreeTypeFontManager fontMan) {
|
||||||
FcFontSetDestroy(fontset);
|
FcFontSetDestroy(fontset);
|
||||||
|
|
||||||
|
|
||||||
Log.i("FontConfig: ", facesFound, " font files registered");
|
long elapsed = currentTimeMillis - startts;
|
||||||
|
Log.i("FontConfig: ", facesFound, " font files registered in ", elapsed, "ms");
|
||||||
//CRLog::info("FONTCONFIG: %d fonts registered", facesFound);
|
//CRLog::info("FONTCONFIG: %d fonts registered", facesFound);
|
||||||
|
|
||||||
/+
|
/+
|
||||||
|
|
Loading…
Reference in New Issue