I recently noticed that my og images were missing emoji. They were taken using headless chrome in a container. I fixed it by adding an emoji font in the containerfile / dockerfile.


RUN apt-get update && apt-get install -y \
    # Add fonts with emoji support
    fonts-noto-color-emoji \
    && rm -rf /var/lib/apt/lists/*

Before

Here's what they were looking like with broken emoji fonts.

image

After

And now with the fixed emoji font.

image

I put thought bubbles on my thoughts posts and stars on my github stars posts