Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62cef87b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add system font configuration file for CJK variable font" into main

parents c4233acb e5011b87
Loading
Loading
Loading
Loading
+25 −2
Original line number Diff line number Diff line
@@ -48,12 +48,35 @@ prebuilt_font {
// Copies the font configuration file into system/etc for the product as fonts.xml.
// Additional fonts should be installed to /product/fonts/ alongside a corresponding
// fonts_customiztion.xml in /product/etc/
prebuilt_etc {

soong_config_bool_variable {
    name: "use_var_font",
}

soong_config_module_type {
    name: "prebuilt_fonts_xml",
    module_type: "prebuilt_etc",
    config_namespace: "noto_sans_cjk_config",
    bool_variables: ["use_var_font"],
    properties: ["src"],
}

prebuilt_fonts_xml {
    name: "fonts.xml",
    src: "fonts.xml",
    soong_config_variables: {
        use_var_font: {
            src: "fonts_cjkvf.xml",
        },
    },
}

prebuilt_etc {
prebuilt_fonts_xml {
    name: "font_fallback.xml",
    src: "font_fallback.xml",
    soong_config_variables: {
        use_var_font: {
            src: "font_fallback_cjkvf.xml",
        },
    },
}
+1015 −0

File added.

Preview size limit exceeded, changes collapsed.

+1785 −0

File added.

Preview size limit exceeded, changes collapsed.