 +	return filename;
 +}
 +
++char *
++get_font_file_android(char *name)
++{
++	const char fontdir[] = "/system/fonts";
++	size_t len = sizeof(fontdir) + strlen(name) + 1;	// sizeof on a string literal includes the NUL
++	char *filename = malloc(len);
++	if (filename == NULL) {
++		return NULL;
++	}
++	snprintf(filename, len, "%s/%s", fontdir, name);
++	return filename;
++}
++
 +const unsigned char *
 +fz_lookup_base14_font(fz_context *ctx, const char *name, int *size)
 +{

+	if (!strcmp("Helvetica-BoldOblique", name)) {
+		return get_font_file("urw/NimbusSanL-BolIta.cff");
+	}
+	if (!strcmp("NotoSans", name)) {
+		return get_font_file("noto/NotoSans-Regular.ttf");
+	}

+	char *filename;
+	fz_font *font;
+
+#ifdef __ANDROID__
+	filename = get_font_file_android("Roboto-Regular.ttf");
+#else
+	filename = get_font_file("noto/NotoSansCJKsc-Regular.otf");
+#endif
+	font = fz_new_font_from_file(ctx, NULL, filename, 0, 1);
+	free(filename);
+	return font;
