3

TeXLive installs a lot of fonts. How can I know which of them support Cyrillic letters?

v_2e
  • 1,530

1 Answers1

5

I don't have a general solution which works for all font types supported by TeX. Here's a script which searches a given directory for OpenType files and displays the ones supporting the Cyrillic script. It uses otfinfo (otfinfo - man page)

#!/bin/sh

#####
#
# Finds fonts that support a particular script
#
# Usage: font-script-search <directory>
#
#####

script='Cyrillic'

find "$1" -type f -name "*.otf" |
  while read file; do
    if otfinfo --scripts "$file" 2>/dev/null | grep "$script" >/dev/null; then
      otfinfo --postscript-name "$file"
    fi
  done | sort

exit 0
Marco
  • 26,055