. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/MESON_FUNCTIONS"
           SPELL="fcft"
if [[ "${FOOT_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-git.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://codeberg.org/dnkl/${SPELL}:${SPELL}-git"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
else
         VERSION="3.3.2"
     SOURCE_HASH="sha512:56f846586b28cddf7ffbfa51f84475696f68e2b8f2563a965d55031536995dc318a4f5debec2f8aa94c8b4e861a880d2a959479d98a1fe05ff381df80adb8555"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
   SOURCE_URL[0]="https://codeberg.org/dnkl/${SPELL}/archive/${VERSION}.tar.gz"
# Watch: https://codeberg.org/dnkl/fcft/releases archive/([0-9.]+)[.]tar
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}"
fi
      LICENSE[0]="MIT"
        WEB_SITE="https://codeberg.org/dnkl/fcft"
         ENTERED="20221217"
           SHORT="simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman"
cat << EOF
fcft is a small font loading and glyph rasterization library built on-top of
FontConfig, FreeType2 and pixman.

It can load and cache fonts from a fontconfig-formatted name string, e.g.
Monospace:size=12, optionally with user configured fallback fonts.

After a font has been loaded, you can rasterize glyphs. When doing so,
the primary font is first considered. If it does not have the requested glyph,
the user configured fallback fonts (if any) are considered. If none of
the user configured fallback fonts has the requested glyph, the FontConfig
generated list of fallback fonts are checked.

The API is documented as man pages. These are built and installed when fcft is
built as a standalone project, but not when built as a subproject.
EOF
