Custom subtitle font in Jellyfin

Install jellyfin in Container Manager

Open Container Manager and create a project named jellyfin and create docker-compose.yml

The following configuration uses nvidia hardware decoding. You can delete the nvidia content if it is not needed.

version: "3.x"

services:
  jellyfin:
    image: nyanmisaka/jellyfin:230414-amd64
    container_name: jellyfin
    runtime: nvidia
    user: 1026:100
    group_add:
      - '101'
    network_mode: host
    restart: unless-stopped
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]
    environment:
      - UID=1026
      - GID=100
      - GIDLIST=100,101
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
    volumes:
      - /volume1/Media:/media
      - /volume1/docker/jellyfin:/config

Try set the fallback font folder path

I tried to put some woff font files in the /config/fonts directory, and then set the path in the dashboard Playback > Fallback font folder path, but it didn’t work.

So I add another volume mapping in docker-compose.yml, /volume1/docker/fonts:/usr/share/fonts/woff.

It works.