Integrate 3D emoji font

Android 17 QPR1 introduces a bitmap emoji font to replace the existing vector font, featuring emoji designs that look three-dimensional and modern while maintaining familiarity for users. Adopting this font offers a consistent, high-fidelity, and visually polished emoji experience across Android devices.

Prerequisites

The 3D emoji font is supported on Android 17 QPR1 and higher. Use the instructions on this page and the final font files to integrate the emoji font. No additional CL patches are required.

Font resources

Fonts are available in standard bitmap fonts and Wear OS-optimized fonts. Each is available in noflags and flagsonly variations:

  • noflags: Contains all non-flag emoji glyphs. You can dynamically update this font file over Google Mobile Services (GMS), so apps automatically receive new emoji releases without requiring a full system OTA update.
  • flagsonly: Contains national flag emoji glyphs. This file isn't updated over GMS.

Download links:

Noto 3D emoji font resolution comparison

Figure 1. Noto 3D emoji font resolution comparison.

Font deployment guide

The following table outlines the recommended strategy for font selection based on hardware capabilities:

Hardware tierReturn value of isLowRamDeviceSelection strategyRecommendation and compliance notes
High endfalseChoose either standard bitmap fonts (max. 192 px) or vector fonts (COLRv1).Recommended standard given performance metrics and consistency.
Low end, such as Android (Go edition) devicestrueStrictly vector based. Continue to use NotoColorEmoji (COLRv1), and don't switch to any updated bitmap fonts.Mandatory requirement: Vector fonts are required for these devices.
WearableN/AUse Wear OS-optimized bitmap fonts.Scaled for watch hardware.

Performance summary

Noto 3D bitmap fonts are prerasterized and optimized for mobile rendering, resulting in negligible latency overhead compared to the respective 2D vector fonts.

While native heap usage can temporarily increase when an emoji picker is active, this memory is transient and is automatically reclaimed by the system when an app moves to the background or the system is under memory pressure.

Code integration

For Android 17 QPR1 and higher builds, the font binaries and targets are preintegrated in AOSP under font/2.052/. To set the build flags in your device.mk file, see Configure the 3D emoji font on your device.

If your Android 17 QPR1 build was finalized or released before completing this integration, no additional OEM work is required. Emoji are automatically updated for users through the GMSCore 3D font download.

Add font files for Android 17 QPR1

If you're integrating into an Android 17 QPR1 build, follow these steps to add the font files in font version 2.052:

  1. In the ~<source_root>/external/noto-fonts/emoji-compat/font/ directory, create a directory named 2.052.
  2. Download the font files and place them in the 2.052 directory.

Your final structure should look like this:

~<source_root>/external/noto-fonts/emoji-compat/font/
├── 2.048
│   └── NotoColorEmoji-flagsonly.ttf
├── 2.051
│   ├── NotoColorEmoji-noflags.ttf
│   └── Noto-COLRv1-noflags.ttf
└── 2.052
    ├── Noto-3D-192-flagsonly.ttf
    ├── Noto-3D-192-noflags.ttf
    ├── Noto-3D-watch-flagsonly.ttf
    └── Noto-3D-watch-noflags.ttf

Update the font files target

In ~<source_root>/external/noto-fonts/emoji-compat/Android.bp, add the following code snippets to update the NotoColorEmoji.ttf and NotoColorEmojiFlags.ttf targets:

soong_config_module_type {
    name: "emoji_prebuilt_font",
    module_type: "prebuilt_font",
    config_namespace: "emoji_fonts",
    variables: [
        "emoji_font_type",
        "emoji_font_flag_type",
    ],
    properties: ["src"],
}

soong_config_string_variable {
    name: "emoji_font_type",
    values: [
        "3d_large",
        "3d_wear",
        "COLRv1",
    ],
}

soong_config_string_variable {
    name: "emoji_font_flag_type",
    values: [
        "3d_large",
        "3d_wear",
        "2d",
    ],
}

// Individual filegroups for each format to manage versioning independently.
// This separates versioning (release flags) from format selection.
filegroup {
    name: "NotoColorEmoji_2D",
    srcs: ["font/2.051/Noto-COLRv1-noflags.ttf"],
}

filegroup {
    name: "NotoColorEmoji_wear",
    srcs: ["font/2.052/Noto-3D-watch-noflags.ttf"],
}

filegroup {
    name: "NotoColorEmoji_large",
    srcs: ["font/2.052/Noto-3D-192-noflags.ttf"],
}

// 2D emoji font
filegroup {
    name: "NotoColorEmojiFlags_2D",
    srcs: ["font/2.048/NotoColorEmoji-flagsonly.ttf"],
}

filegroup {
    name: "NotoColorEmojiFlags_wear",
    srcs: ["font/2.052/Noto-3D-watch-flagsonly.ttf"],
}

filegroup {
    name: "NotoColorEmojiFlags_large",
    srcs: ["font/2.052/Noto-3D-192-flagsonly.ttf"],
}

// Main targets that only handle format selection, routing to the appropriate filegroup.
emoji_prebuilt_font {
    name: "NotoColorEmoji.ttf",
    dist: {
        targets: ["droidcore"],
    },
    src: select(soong_config_variable("emoji_fonts", "emoji_font_type"), {
        "3d_large": ":NotoColorEmoji_large",
        "3d_wear": ":NotoColorEmoji_wear",
        "COLRv1": ":NotoColorEmoji_2D",
        default: ":NotoColorEmoji_large", // Default to 3D large
    }),
}

emoji_prebuilt_font {
    name: "NotoColorEmojiFlags.ttf",
    dist: {
        targets: ["droidcore"],
    },
    src: select(soong_config_variable("emoji_fonts", "emoji_font_flag_type"), {
        "3d_large": ":NotoColorEmojiFlags_large",
        "3d_wear": ":NotoColorEmojiFlags_wear",
        "2d": ":NotoColorEmojiFlags_2D",
        default: ":NotoColorEmojiFlags_large", // Default to 3D large flags
    }),
}

Configure the 3D emoji font on your device

The Noto-3D-192-noflags.ttf and Noto-3D-192-flagsonly.ttf variants are configured as the default option, so no additional configuration is required if your OS uses these variants.

Noto 3D 192px emoji explorer variants

Figure 2. Noto 3D 192px emoji explorer variants.

If you choose a different font variant for your device build, configure the corresponding build flags in your device.mk file:

For Noto-COLRv1-noflags.ttf and NotoColorEmoji-flagsonly.ttf:

# Configure emoji font type
$(call soong_config_set,emoji_fonts,emoji_font_type,COLRv1)
$(call soong_config_set,emoji_fonts,emoji_font_flag_type,2d)

For Noto-3D-watch-noflags.ttf and Noto-3D-watch-flagsonly.ttf:

$(call soong_config_set,emoji_fonts,emoji_font_type,3d_wear)
$(call soong_config_set,emoji_fonts,emoji_font_flag_type,3d_wear)

Figure 3 illustrates the emoji rendering for the Wear OS 64 px variant:

Noto 3D Wear OS 64px emoji variants

Figure 3. Noto 3D Wear OS 64 px emoji variants.

After configuring device.mk, build your target and flash the build to your device. For more information about building and flashing, see Building Android.