summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/fonts/Android.bp8
-rw-r--r--data/fonts/font_config.json12
2 files changed, 20 insertions, 0 deletions
diff --git a/data/fonts/Android.bp b/data/fonts/Android.bp
index f1a6b6974b06..1a3a0f60f2dc 100644
--- a/data/fonts/Android.bp
+++ b/data/fonts/Android.bp
@@ -86,3 +86,11 @@ prebuilt_fonts_xml {
// Because `system.img` is a dependency of `fontchain_lint`, it cannot be
// converted to Android.bp for now.
// After system.img can be generated by Soong, then it can be converted to Android.bp.
+
+filegroup {
+ name: "DroidSansMono",
+ srcs: ["font_config.json"],
+ required: [
+ "DroidSansMono.ttf",
+ ],
+}
diff --git a/data/fonts/font_config.json b/data/fonts/font_config.json
new file mode 100644
index 000000000000..427e6cfe7307
--- /dev/null
+++ b/data/fonts/font_config.json
@@ -0,0 +1,12 @@
+[
+ {
+ "name": "monospace",
+ "fonts": [
+ {
+ "file": "DroidSansMono.ttf",
+ "weight": "400",
+ "style": "normal"
+ }
+ ]
+ }
+] \ No newline at end of file