#!/bin/sh
set -e

fc-cache -f

fc-match "B612" | grep -qi "b612"
fc-match "B612 Mono" | grep -qi "b612mono"
fc-match "B612:style=Bold" | grep -qi "b612"
fc-match "B612:style=Italic" | grep -qi "b612"
fc-match "B612:style=Bold Italic" | grep -qi "b612"
fc-match "B612Mono:style=Bold" | grep -qi "b612mono"
fc-match "B612Mono:style=Italic" | grep -qi "b612mono"
fc-match "B612Mono:style=Bold Italic" | grep -qi "b612mono"

echo "OK: All font families found by fontconfig."
