Kaydet (Commit) 6b6ca3d1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Automate setting of FONTCONFIG_FILE

üst 366cba7d
......@@ -127,6 +127,18 @@ public class Bootstrap extends NativeActivity
// Extract files from the .apk that can't be used mmapped directly from it
extract_files();
// If we notice that a fonts.conf file was extracted, automatically
// set the FONTCONFIG_FILE env var.
InputStream i;
try {
i = activity.getAssets().open("unpack/etc/fonts/fonts.conf");
}
catch (java.io.IOException e) {
i = null;
}
if (i != null)
putenv("FONTCONFIG_FILE=" + dataDir + "/etc/fonts/fonts.conf");
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment